Ejemplo n.º 1
0
 def test_invalid(self):
     with pytest.raises(HTTPNotFound):
         force_status(pretend.stub(matchdict={"status": "599"}))
Ejemplo n.º 2
0
 def test_invalid(self):
     with pytest.raises(HTTPNotFound):
         force_status(pretend.stub(matchdict={"status": "599"}))
Ejemplo n.º 3
0
 def test_valid(self):
     with pytest.raises(HTTPBadRequest):
         force_status(pretend.stub(matchdict={"status": "400"}))
Ejemplo n.º 4
0
 def test_valid(self):
     with pytest.raises(HTTPBadRequest):
         force_status(pretend.stub(matchdict={"status": "400"}))