equal
deleted
inserted
replaced
49 self.vreg.render('views', 'hcal', self.req, rset=self.blog.rset) |
49 self.vreg.render('views', 'hcal', self.req, rset=self.blog.rset) |
50 |
50 |
51 def test_django_index(self): |
51 def test_django_index(self): |
52 self.vreg.render('views', 'index', self.req, rset=None) |
52 self.vreg.render('views', 'index', self.req, rset=None) |
53 |
53 |
54 for vid in ('primary', 'secondary', 'oneline', 'incontext', 'outofcontext', 'text'): |
54 for vid in ('primary', 'oneline', 'incontext', 'outofcontext', 'text'): |
55 setattr(SomeViewsTC, 'test_%s'%vid, lambda self, vid=vid: self.blog.view(vid)) |
55 setattr(SomeViewsTC, 'test_%s'%vid, lambda self, vid=vid: self.blog.view(vid)) |
56 |
56 |
57 if __name__ == '__main__': |
57 if __name__ == '__main__': |
58 from logilab.common.testlib import unittest_main |
58 from logilab.common.testlib import unittest_main |
59 unittest_main() |
59 unittest_main() |