156 self.assertEqual(order_eschemas([schema['SubNote'], schema['Note']]), |
156 self.assertEqual(order_eschemas([schema['SubNote'], schema['Note']]), |
157 [schema['Note'], schema['SubNote']]) |
157 [schema['Note'], schema['SubNote']]) |
158 |
158 |
159 def test_knownValues_load_schema(self): |
159 def test_knownValues_load_schema(self): |
160 schema = loader.load(config) |
160 schema = loader.load(config) |
161 self.assert_(isinstance(schema, CubicWebSchema)) |
161 self.assertIsInstance(schema, CubicWebSchema) |
162 self.assertEqual(schema.name, 'data') |
162 self.assertEqual(schema.name, 'data') |
163 entities = sorted([str(e) for e in schema.entities()]) |
163 entities = sorted([str(e) for e in schema.entities()]) |
164 expected_entities = ['Ami', 'BaseTransition', 'BigInt', 'Bookmark', 'Boolean', 'Bytes', 'Card', |
164 expected_entities = ['Ami', 'BaseTransition', 'BigInt', 'Bookmark', 'Boolean', 'Bytes', 'Card', |
165 'Date', 'Datetime', 'Decimal', |
165 'Date', 'Datetime', 'Decimal', |
166 'CWCache', 'CWComputedRType', 'CWConstraint', |
166 'CWCache', 'CWComputedRType', 'CWConstraint', |