server/test/unittest_security.py
changeset 2608 21856eda34f6
parent 2501 fa86d99c2c3a
child 2773 b2530e3e0afb
child 2920 64322aa83a1d
equal deleted inserted replaced
2607:5d889b4928bb 2608:21856eda34f6
   513         self.commit()
   513         self.commit()
   514         # can change tr info comment
   514         # can change tr info comment
   515         self.execute('SET TI comment %(c)s WHERE TI wf_info_for X, X ref "ARCT01"',
   515         self.execute('SET TI comment %(c)s WHERE TI wf_info_for X, X ref "ARCT01"',
   516                      {'c': u'creation'})
   516                      {'c': u'creation'})
   517         self.commit()
   517         self.commit()
       
   518         aff.clear_related_cache('wf_info_for', 'object')
   518         self.assertEquals(aff.latest_trinfo().comment, 'creation')
   519         self.assertEquals(aff.latest_trinfo().comment, 'creation')
   519         # but not from_state/to_state
   520         # but not from_state/to_state
   520         self.execute('SET X in_state S WHERE X ref "ARCT01", S name "ben non"')
   521         self.execute('SET X in_state S WHERE X ref "ARCT01", S name "ben non"')
   521         self.commit()
   522         self.commit()
   522         aff.clear_related_cache('wf_info_for', role='object')
   523         aff.clear_related_cache('wf_info_for', role='object')