def test_failing_view(self): from default.views.home import my_view request = testing.DummyRequest() info = my_view(request) self.assertEqual(info.status_int, 500)
def test_passing_view(self): from default.views.home import my_view request = testing.DummyRequest() info = my_view(request) self.assertEqual(info['one'].name, 'one') self.assertEqual(info['project'], 'default')