예제 #1
0
 def _callFUT(self, request):
     from tutorial.views.default import view_wiki
     return view_wiki(request)
예제 #2
0
 def test_it(self):
     from tutorial.views.default import view_wiki
     context = testing.DummyResource()
     request = testing.DummyRequest()
     response = view_wiki(context, request)
     self.assertEqual(response.location, 'http://example.com/FrontPage')
예제 #3
0
 def test_it_redirects_to_front_page(self):
     from tutorial.views.default import view_wiki
     context = testing.DummyResource()
     request = testing.DummyRequest()
     response = view_wiki(context, request)
     assert response.location == 'http://example.com/FrontPage'
예제 #4
0
파일: test_views.py 프로젝트: canni/pyramid
    def _callFUT(self, request):
        from tutorial.views.default import view_wiki

        return view_wiki(request)