(self)
| 188 | |
| 189 | class TestUserAgent(unittest.TestCase): |
| 190 | def test_set_user_agent(self): |
| 191 | http = HttpMockSequence([({"status": "200"}, "echo_request_headers")]) |
| 192 | |
| 193 | http = set_user_agent(http, "my_app/5.5") |
| 194 | resp, content = http.request("http://example.com") |
| 195 | self.assertEqual("my_app/5.5", content["user-agent"]) |
| 196 | |
| 197 | def test_set_user_agent_nested(self): |
| 198 | http = HttpMockSequence([({"status": "200"}, "echo_request_headers")]) |
nothing calls this directly
no test coverage detected