goa/test/unittest_views.py
changeset 2471 3e2b50ece726
parent 1977 606923dff11b
child 2650 18aec79ec3a3
equal deleted inserted replaced
2470:569d6641f08c 2471:3e2b50ece726
    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()