web/test/unittest_views_basecontrollers.py
changeset 5556 9ab2b4c74baf
parent 5444 f7fdb5dd82f6
child 5940 0e3ae19b181a
equal deleted inserted replaced
5555:a64f48dd5fe4 5556:9ab2b4c74baf
   126         e = self.execute('Any X WHERE X eid %(x)s', {'x': user.eid}).get_entity(0, 0)
   126         e = self.execute('Any X WHERE X eid %(x)s', {'x': user.eid}).get_entity(0, 0)
   127         self.assertEquals(e.login, user.login)
   127         self.assertEquals(e.login, user.login)
   128         self.assertEquals(e.firstname, u'Th\xe9nault')
   128         self.assertEquals(e.firstname, u'Th\xe9nault')
   129         self.assertEquals(e.surname, u'Sylvain')
   129         self.assertEquals(e.surname, u'Sylvain')
   130         self.assertEquals([g.eid for g in e.in_group], groupeids)
   130         self.assertEquals([g.eid for g in e.in_group], groupeids)
   131         self.assertEquals(e.state, 'activated')
   131         self.assertEquals(e.cw_adapt_to('IWorkflowable').state, 'activated')
   132 
   132 
   133 
   133 
   134     def test_create_multiple_linked(self):
   134     def test_create_multiple_linked(self):
   135         gueid = self.execute('CWGroup G WHERE G name "users"')[0][0]
   135         gueid = self.execute('CWGroup G WHERE G name "users"')[0][0]
   136         req = self.request()
   136         req = self.request()