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