Esempio n. 1
0
    def test_extends(self):
        view = views.CommonListView()

        # self.assertIsInstance(view, UserPassesTestMixin)
        self.assertIsInstance(view, ListView)
        self.assertIsInstance(view, views.CommonMixin)
        self.assertIsInstance(view, views.CommonListMixin)
Esempio n. 2
0
 def test_template(self):
     view = views.CommonListView()
     self.assertEquals(view.template_name, 'shared_models/generic_filter.html')