예제 #1
0
파일: view.py 프로젝트: plastboks/Pulpy
 def test_forbidden(self):
     request = testing.DummyRequest()
     m = MainViews(request)
     response = m.forbidden()
     self.assertEqual(response['title'], '403 - Forbidden')
예제 #2
0
파일: view.py 프로젝트: plastboks/Pulpy
 def test_forbidden(self):
     request = testing.DummyRequest()
     m = MainViews(request)
     response = m.forbidden()
     self.assertEqual(response['title'], '403 - Forbidden')
예제 #3
0
파일: view.py 프로젝트: plastboks/Pulpy
 def test_notfound(self):
     request = testing.DummyRequest()
     m = MainViews(request)
     response = m.notfound()
     self.assertEqual(response['title'], '404 - Page not found')
예제 #4
0
파일: view.py 프로젝트: plastboks/Pulpy
 def test_notfound(self):
     request = testing.DummyRequest()
     m = MainViews(request)
     response = m.notfound()
     self.assertEqual(response['title'], '404 - Page not found')