server/test/unittest_migractions.py
changeset 10999 adc46197b8c9
parent 10951 ef1cfc80d51c
child 11004 14ba505fb652
--- a/server/test/unittest_migractions.py	Wed Sep 16 10:56:36 2015 +0200
+++ b/server/test/unittest_migractions.py	Wed Dec 09 17:44:16 2015 +0100
@@ -289,6 +289,12 @@
             for cstr in eschema.rdef('name').constraints:
                 self.assertTrue(hasattr(cstr, 'eid'))
 
+    def test_add_cube_with_custom_final_type(self):
+        with self.mh() as (cnx, mh):
+            mh.cmd_add_cube('fakegis')
+            self.assertIn('Geometry', self.schema)
+            self.assertTrue(self.schema['Geometry'].final)
+
     def test_add_drop_entity_type(self):
         with self.mh() as (cnx, mh):
             mh.cmd_add_entity_type('Folder2')