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