def test_template(self): view = views.CommonCreateView() self.assertEquals(view.template_name, EXPECTED_FORM_TEMPLATE_NAME)
def test_extends(self): view = views.CommonCreateView() self.assertIsInstance(view, CreateView) self.assertIsInstance(view, views.CommonMixin) self.assertIsInstance(view, views.CommonFormMixin)