equal
deleted
inserted
replaced
27 def context(self): |
27 def context(self): |
28 return self.execute('CWUser X WHERE X login "admin"').get_entity(0, 0) |
28 return self.execute('CWUser X WHERE X login "admin"').get_entity(0, 0) |
29 |
29 |
30 def test_eid_role(self): |
30 def test_eid_role(self): |
31 context = self.context() |
31 context = self.context() |
32 self.assertEquals(rest_publish(context, ':eid:`%s`' % context.eid), |
32 self.assertEqual(rest_publish(context, ':eid:`%s`' % context.eid), |
33 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">#%s</a></p>\n' % context.eid) |
33 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">#%s</a></p>\n' % context.eid) |
34 self.assertEquals(rest_publish(context, ':eid:`%s:some text`' % context.eid), |
34 self.assertEqual(rest_publish(context, ':eid:`%s:some text`' % context.eid), |
35 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">some text</a></p>\n') |
35 '<p><a class="reference" href="http://testing.fr/cubicweb/cwuser/admin">some text</a></p>\n') |
36 |
36 |
37 def test_bad_rest_no_crash(self): |
37 def test_bad_rest_no_crash(self): |
38 data = rest_publish(self.context(), ''' |
38 data = rest_publish(self.context(), ''' |
39 | card | implication | |
39 | card | implication | |