test/unittest_schema.py
changeset 10600 180aa08cad48
parent 10554 c39749d14c53
child 10653 42c5bd7286b7
equal deleted inserted replaced
10599:99e9fe1e633f 10600:180aa08cad48
   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',