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