mirror of
https://github.com/romanz/amodem.git
synced 2026-03-17 15:16:00 +08:00
util: move to_ascii() from __main__
This commit is contained in:
@@ -45,3 +45,7 @@ def test_send_recv():
|
||||
assert util.recv(s, 2) == b'3*'
|
||||
|
||||
pytest.raises(EOFError, util.recv, s, 1)
|
||||
|
||||
|
||||
def test_ascii():
|
||||
assert util.to_ascii(b'123abc') == '123abc'
|
||||
|
||||
Reference in New Issue
Block a user