def assert_status__fail(self) -> None: response = FakeResponse("404 Not Found", []) with assert_raises(AssertionError): response.assert_status(HTTPStatus.OK)
def assert_status__ok(self) -> None: response = FakeResponse("404 Not Found", []) with assert_succeeds(AssertionError): response.assert_status(HTTPStatus.NOT_FOUND)