Ejemplo n.º 1
0
 def test_from_handler__not_callable(self):
     with pytest.raises(TypeError):
         View.from_handler(1)
Ejemplo n.º 2
0
 async def test_interface_get(self, *, app, web):
     view = View(app, web)
     with pytest.raises(MethodNotAllowed):
         await view.get(Mock(name='request', autospec=Request))
Ejemplo n.º 3
0
 async def test_interface_get(self, app, web):
     view = View(app, web)
     assert await view.get(
         Mock(name='request', autospec=Request)) is None