示例#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"}))