class TestServerResource(object): def setup_class(self): self.resource = ServerResource() def test_on_post(self): with pytest.raises(NotImplementedError): self.resource.on_post() def test_dispatch(self): with pytest.raises(NotImplementedError): self.resource._dispatch()
def setup_class(self): self.resource = ServerResource()