def assert_header_not_set__not_set(self) -> None: response = FakeResponse("200 OK", []) with assert_succeeds(AssertionError): response.assert_header_not_set("X-Foo")
def assert_header_not_set__is_set(self) -> None: response = FakeResponse("200 OK", [("X-Foo", "value")]) with assert_raises(AssertionError): response.assert_header_not_set("x-FOO")