Ejemplo n.º 1
0
 def test_page_fail(self):
     req = DummyRequest()
     req.matchdict['page'] = 'does-not-exists'
     resp = views.page(req)
     self.assertIsInstance(resp, httpexceptions.HTTPNotFound)
Ejemplo n.º 2
0
 def test_page(self):
     req = DummyRequest()
     req.matchdict['page'] = 'help'
     resp = views.page(req)
     self.assertIsInstance(resp, dict)
     self.assertIn('Installation guides:', resp['content'])
Ejemplo n.º 3
0
 def test_page_fail(self):
     req = DummyRequest()
     req.matchdict['page'] = 'does-not-exists'
     resp = views.page(req)
     self.assertIsInstance(resp, httpexceptions.HTTPNotFound)
Ejemplo n.º 4
0
 def test_page(self):
     req = DummyRequest()
     req.matchdict['page'] = 'docs'
     resp = views.page(req)
     self.assertIsInstance(resp, dict)
     self.assertIn('Docs', resp['content'])
Ejemplo n.º 5
0
 def test_page(self):
     req = DummyRequest()
     req.matchdict['page'] = 'help'
     resp = views.page(req)
     self.assertIsInstance(resp, dict)
     self.assertIn('Installation guides:', resp['content'])