def test_page_fail(self): req = DummyRequest() req.matchdict['page'] = 'does-not-exists' resp = views.page(req) self.assertIsInstance(resp, httpexceptions.HTTPNotFound)
def test_page(self): req = DummyRequest() req.matchdict['page'] = 'help' resp = views.page(req) self.assertIsInstance(resp, dict) self.assertIn('Installation guides:', resp['content'])
def test_page(self): req = DummyRequest() req.matchdict['page'] = 'docs' resp = views.page(req) self.assertIsInstance(resp, dict) self.assertIn('Docs', resp['content'])