示例#1
0
def test_binary_to_snowflake():
    """Test conversion for passing to Snowflake."""
    assert binary_to_snowflake(b"") == b""
    assert binary_to_snowflake(b"\x00") == b"00"
    assert binary_to_snowflake(b"\xAB\xCD\x12") == b"ABCD12"
def test_binary_to_snowflake():
    """Test conversion for passing to Snowflake."""
    assert binary_to_snowflake(b'') == b''
    assert binary_to_snowflake(b'\x00') == b'00'
    assert binary_to_snowflake(b'\xAB\xCD\x12') == b'ABCD12'