Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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')
Exemple #4
0
 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')