Files
trezor-agent/libagent/tests/test_interface.py
2021-10-22 19:47:15 +03:00

8 lines
240 B
Python

from ..device import interface
def test_unicode():
i = interface.Identity('ko\u017eu\u0161\u010dek@host', 'ed25519')
assert i.to_bytes() == b'kozuscek@host'
assert sorted(i.items()) == [('host', 'host'), ('user', 'kozuscek')]