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_output_bytes():
assert output.output_bytes(b"hello world") == r"hello world"
assert output.output_bytes(b'hello"world') == r"hello\"world"
assert output.output_bytes(b"hello'world") == r"hello'world"
assert output.output_bytes(b'"hello\\world"') == '\\"hello\\\\world\\"'
assert output.output_bytes(b"'\"") == "'\\\""
assert output.output_bytes("你好".encode()) == r"\xe4\xbd\xa0\xe5\xa5\xbd"
def test_output_bytes():
assert output.output_bytes(b"hello world") == r"hello world"
assert output.output_bytes(b'hello"world') == r"hello\"world"
assert output.output_bytes(b"hello'world") == r"hello'world"
assert output.output_bytes(b'"hello\\world"') == '\\"hello\\\\world\\"'
assert output.output_bytes(b"'\"") == "'\\\""
assert output.output_bytes("你好".encode()) == r"\xe4\xbd\xa0\xe5\xa5\xbd"
def test_output_bytes():
assert output.output_bytes(b"hello world") == r"hello world"
assert output.output_bytes(b'hello"world') == r"hello\"world"
assert output.output_bytes(b"hello'world") == r"hello'world"
assert output.output_bytes(b'"hello\\world"') == '\\"hello\\\\world\\"'
assert output.output_bytes(b"'\"") == "'\\\""
assert output.output_bytes("你好".encode()) == r"\xe4\xbd\xa0\xe5\xa5\xbd"
def test_output_bytes():
assert output.output_bytes(b"hello world") == r"hello world"
assert output.output_bytes(b'hello"world') == r"hello\"world"
assert output.output_bytes(b"hello'world") == r"hello'world"
assert output.output_bytes(b'"hello\\world"') == '\\"hello\\\\world\\"'
assert output.output_bytes(b"'\"") == "'\\\""
assert output.output_bytes("你好".encode()) == r"\xe4\xbd\xa0\xe5\xa5\xbd"
def test_output_bytes():
assert output.output_bytes(b"hello world") == r"hello world"
assert output.output_bytes(b'hello"world') == r"hello\"world"
assert output.output_bytes(b"hello'world") == r"hello'world"
assert output.output_bytes(b'"hello\\world"') == '\\"hello\\\\world\\"'
assert output.output_bytes(b"'\"") == "'\\\""
assert output.output_bytes("你好".encode()) == r"\xe4\xbd\xa0\xe5\xa5\xbd"
def test_output_bytes():
assert output.output_bytes(b"hello world") == r"hello world"
assert output.output_bytes(b'hello"world') == r"hello\"world"
assert output.output_bytes(b"hello'world") == r"hello'world"
assert output.output_bytes(b'"hello\\world"') == '\\"hello\\\\world\\"'
assert output.output_bytes(b"'\"") == "'\\\""
assert output.output_bytes("你好".encode()) == r"\xe4\xbd\xa0\xe5\xa5\xbd"