class ViewTestCase(unittest.TestCase): def setUp(self): super(ViewTestCase, self).setUp() self.view = View() def test_as_view(self): self.assertEqual(self.view.as_view('api'), None)
def setUp(self): super(ViewTestCase, self).setUp() self.view = View()