MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / test_encode_basic_auth

Function test_encode_basic_auth

tests/test_helpers.py:180–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178
179
180def 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
189def test_encode_basic_auth_rejects_colon_in_login() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected