()
| 178 | |
| 179 | |
| 180 | def test_encode_basic_auth() -> None: |
| 181 | assert helpers.encode_basic_auth("nkim", "pwd") == "Basic bmtpbTpwd2Q=" |
| 182 | assert helpers.encode_basic_auth("") == "Basic Og==" |
| 183 | assert ( |
| 184 | helpers.encode_basic_auth("usér", "pàss", encoding="utf-8") |
| 185 | == "Basic dXPDqXI6cMOgc3M=" |
| 186 | ) |
| 187 | |
| 188 | |
| 189 | def test_encode_basic_auth_rejects_colon_in_login() -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected