sobjects/test/unittest_supervising.py
branchstable
changeset 2102 268659907769
parent 1977 606923dff11b
child 2773 b2530e3e0afb
child 2920 64322aa83a1d
equal deleted inserted replaced
2101:08003e0354a7 2102:268659907769
    43         # check view content
    43         # check view content
    44         op = sentops[0]
    44         op = sentops[0]
    45         view = sentops[0]._get_view()
    45         view = sentops[0]._get_view()
    46         self.assertEquals(view.recipients(), ['test@logilab.fr'])
    46         self.assertEquals(view.recipients(), ['test@logilab.fr'])
    47         self.assertEquals(view.subject(), '[data supervision] changes summary')
    47         self.assertEquals(view.subject(), '[data supervision] changes summary')
    48         data = view.render(changes=session.query_data('pendingchanges')).strip()
    48         data = view.render(changes=session.transaction_data.get('pendingchanges')).strip()
    49         data = re.sub('#\d+', '#EID', data)
    49         data = re.sub('#\d+', '#EID', data)
    50         data = re.sub('/\d+', '/EID', data)
    50         data = re.sub('/\d+', '/EID', data)
    51         self.assertTextEquals('''user admin has made the following change(s):
    51         self.assertTextEquals('''user admin has made the following change(s):
    52 
    52 
    53 * added cwuser #EID (toto)
    53 * added cwuser #EID (toto)