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