def _callFUT(self, request):
     from tutorial.views.default import view_wiki
     return view_wiki(request)
 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')
Beispiel #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'
Beispiel #4
0
    def _callFUT(self, request):
        from tutorial.views.default import view_wiki

        return view_wiki(request)