server/test/unittest_repository.py
changeset 17 62ce3e6126e0
parent 0 b97547f5f1fa
child 1016 26387b836099
child 1251 af40e615dc89
equal deleted inserted replaced
16:a70ece4d9d1a 17:62ce3e6126e0
   400 class DBInitTC(RepositoryBasedTC):
   400 class DBInitTC(RepositoryBasedTC):
   401     
   401     
   402     def test_versions_inserted(self):
   402     def test_versions_inserted(self):
   403         inserted = [r[0] for r in self.execute('Any K ORDERBY K WHERE P pkey K, P pkey ~= "system.version.%"')]
   403         inserted = [r[0] for r in self.execute('Any K ORDERBY K WHERE P pkey K, P pkey ~= "system.version.%"')]
   404         self.assertEquals(inserted,
   404         self.assertEquals(inserted,
   405                           [u'system.version.ebasket', u'system.version.eclassfolders',
   405                           [u'system.version.basket', u'system.version.comment', 
   406                            u'system.version.eclasstags', u'system.version.ecomment',
   406                            u'system.version.cubicweb', u'system.version.email', 
   407                            u'system.version.eemail', u'system.version.efile',
   407                            u'system.version.file', u'system.version.folder', 
   408                            u'system.version.cubicweb'])
   408                            u'system.version.tag'])
   409 
       
   410         
   409         
   411 class InlineRelHooksTC(RepositoryBasedTC):
   410 class InlineRelHooksTC(RepositoryBasedTC):
   412     """test relation hooks are called for inlined relations
   411     """test relation hooks are called for inlined relations
   413     """
   412     """
   414     def setUp(self):
   413     def setUp(self):