Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_content_length() -> None:
"""Test `CONTENT-LENGTH` HTTP header with non-ascii characters.
https://github.com/n8henrie/fauxmo/issues/70
"""
assert "CONTENT-LENGTH: 3" in Fauxmo.add_http_headers("foo")
assert "CONTENT-LENGTH: 4" in Fauxmo.add_http_headers("föo")
def test_content_length() -> None:
"""Test `CONTENT-LENGTH` HTTP header with non-ascii characters.
https://github.com/n8henrie/fauxmo/issues/70
"""
assert "CONTENT-LENGTH: 3" in Fauxmo.add_http_headers("foo")
assert "CONTENT-LENGTH: 4" in Fauxmo.add_http_headers("föo")