def test_invalid(self): with pytest.raises(HTTPNotFound): force_status(pretend.stub(matchdict={"status": "599"}))
def test_valid(self): with pytest.raises(HTTPBadRequest): force_status(pretend.stub(matchdict={"status": "400"}))