(self, httpbin, username, password)
| 561 | ), |
| 562 | ) |
| 563 | def test_set_basicauth(self, httpbin, username, password): |
| 564 | auth = (username, password) |
| 565 | url = httpbin(class="st">"get") |
| 566 | |
| 567 | r = requests.Request(class="st">"GET", url, auth=auth) |
| 568 | p = r.prepare() |
| 569 | |
| 570 | assert p.headers[class="st">"Authorization"] == _basic_auth_str(username, password) |
| 571 | |
| 572 | def test_basicauth_encodes_byte_strings(self): |
| 573 | class="st">""class="st">"Ensure b&class="cm">#x27;test' formats as the byte string "test" rather |
nothing calls this directly
no test coverage detected