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