def test_notfound(self): request = testing.DummyRequest() m = MainViews(request) response = m.notfound() self.assertEqual(response['title'], '404 - Page not found')
def test_index(self): request = testing.DummyRequest() m = MainViews(request) response = m.index() self.assertEqual(response['title'], 'Dashboard')