test/unittest_schema.py
changeset 7440 539de926ec9d
parent 7426 254bc099db1a
child 7459 e4399a37674e
--- a/test/unittest_schema.py	Wed May 25 18:46:09 2011 +0200
+++ b/test/unittest_schema.py	Thu May 26 08:12:42 2011 +0200
@@ -259,6 +259,11 @@
         self.assertEqual([x.expression for x in aschema.get_rqlexprs('update')],
                           ['U has_update_permission X'])
 
+    def test_nonregr_allowed_type_names(self):
+        schema = CubicWebSchema('Test Schema')
+        schema.add_entity_type(EntityType('NaN'))
+
+
 class BadSchemaTC(TestCase):
     def setUp(self):
         self.loader = CubicWebSchemaLoader()