sobjects/test/unittest_notification.py
changeset 2637 07103211e511
parent 2058 7ef12c03447c
child 2650 18aec79ec3a3
equal deleted inserted replaced
2636:104291d9bd00 2637:07103211e511
    72     def test_status_change_view(self):
    72     def test_status_change_view(self):
    73         req = self.session()
    73         req = self.session()
    74         u = self.create_user('toto', req=req)
    74         u = self.create_user('toto', req=req)
    75         assert u.req
    75         assert u.req
    76         self.execute('SET X in_state S WHERE X eid %s, S name "deactivated"' % u.eid)
    76         self.execute('SET X in_state S WHERE X eid %s, S name "deactivated"' % u.eid)
    77         v = self.vreg.select('views', 'notif_status_change', req, u.rset, row=0)
    77         v = self.vreg.select('views', 'notif_status_change', req, rset=u.rset, row=0)
    78         content = v.render(row=0, comment='yeah',
    78         content = v.render(row=0, comment='yeah',
    79                            previous_state='activated',
    79                            previous_state='activated',
    80                            current_state='deactivated')
    80                            current_state='deactivated')
    81         # remove date
    81         # remove date
    82         self.assertEquals(content,
    82         self.assertEquals(content,