Exemple #1
0
 def assert_header_not_set__not_set(self) -> None:
     response = FakeResponse("200 OK", [])
     with assert_succeeds(AssertionError):
         response.assert_header_not_set("X-Foo")
Exemple #2
0
 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")