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)
def test_template(self): view = views.CommonListView() self.assertEquals(view.template_name, 'shared_models/generic_filter.html')