# Copyright (c) 2014-2018, Manfred Moitzi
# License: MIT License
from __future__ import unicode_literals
from ezdxf.tools.binarydata import binary_encoded_data_to_bytes


def test_binary_encoded_data_to_bytes_1():
    assert binary_encoded_data_to_bytes(['FFFF']) == b"\xff\xff"


def test_binary_encoded_data_to_bytes_2():
    assert binary_encoded_data_to_bytes(['F0F0', '1A1C']) == b"\xF0\xF0\x1A\x1C"

