entities/test/unittest_wfobjs.py
changeset 7791 31bb51ea5485
parent 7398 26695dd703d8
child 8483 4ba11607d84a
child 8659 cd9fddc21361
equal deleted inserted replaced
7790:7e16e056eecb 7791:31bb51ea5485
   565         req = self.request()
   565         req = self.request()
   566         ueid = self.create_user(req, 'stduser', commit=False).eid
   566         ueid = self.create_user(req, 'stduser', commit=False).eid
   567         # test initial state is set
   567         # test initial state is set
   568         rset = self.execute('Any N WHERE S name N, X in_state S, X eid %(x)s',
   568         rset = self.execute('Any N WHERE S name N, X in_state S, X eid %(x)s',
   569                             {'x' : ueid})
   569                             {'x' : ueid})
   570         self.failIf(rset, rset.rows)
   570         self.assertFalse(rset, rset.rows)
   571         self.commit()
   571         self.commit()
   572         initialstate = self.execute('Any N WHERE S name N, X in_state S, X eid %(x)s',
   572         initialstate = self.execute('Any N WHERE S name N, X in_state S, X eid %(x)s',
   573                                     {'x' : ueid})[0][0]
   573                                     {'x' : ueid})[0][0]
   574         self.assertEqual(initialstate, u'activated')
   574         self.assertEqual(initialstate, u'activated')
   575         # give access to users group on the user's wf transitions
   575         # give access to users group on the user's wf transitions