equal
deleted
inserted
replaced
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) |