Exemplo n.º 1
0
 def test_template(self):
     view = views.CommonCreateView()
     self.assertEquals(view.template_name, EXPECTED_FORM_TEMPLATE_NAME)
Exemplo n.º 2
0
    def test_extends(self):
        view = views.CommonCreateView()

        self.assertIsInstance(view, CreateView)
        self.assertIsInstance(view, views.CommonMixin)
        self.assertIsInstance(view, views.CommonFormMixin)