autoformat

development
mattsb42-aws 2018-11-02 18:01:41 -07:00
parent 6275472c83
commit 1001a94b66
1 changed files with 4 additions and 5 deletions

View File

@ -39,10 +39,9 @@ def test_file():
assert base64io.file is NotImplemented
@pytest.mark.parametrize("source, expected", (
('asdf', b'asdf'),
(b'\x00\x01\x02\x03', b'\x00\x01\x02\x03'),
(u'\u1111\u2222', b'\xe1\x84\x91\xe2\x88\xa2')
))
@pytest.mark.parametrize(
"source, expected",
(("asdf", b"asdf"), (b"\x00\x01\x02\x03", b"\x00\x01\x02\x03"), (u"\u1111\u2222", b"\xe1\x84\x91\xe2\x88\xa2")),
)
def test_to_bytes(source, expected):
assert base64io._to_bytes(source) == expected