From ce6dca8ed565254b49efc137dd5257cbf77b1e13 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 20 Jun 2017 14:13:26 +0200 Subject: [PATCH] trezor.io: rework for new structure --- src/trezor/__init__.py | 1 + src/trezor/io.py | 1 - tests/test_trezor.io.py | 12 ++++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) delete mode 100644 src/trezor/io.py create mode 100644 tests/test_trezor.io.py diff --git a/src/trezor/__init__.py b/src/trezor/__init__.py index 8fc42297..a25a3e8d 100644 --- a/src/trezor/__init__.py +++ b/src/trezor/__init__.py @@ -1 +1,2 @@ import trezorconfig as config +import trezorio as io diff --git a/src/trezor/io.py b/src/trezor/io.py deleted file mode 100644 index 2d84cf5b..00000000 --- a/src/trezor/io.py +++ /dev/null @@ -1 +0,0 @@ -from trezorio import SDCard diff --git a/tests/test_trezor.io.py b/tests/test_trezor.io.py new file mode 100644 index 00000000..bd0f499e --- /dev/null +++ b/tests/test_trezor.io.py @@ -0,0 +1,12 @@ +from common import * + +from trezor import io + +class TestIo(unittest.TestCase): + + def test_sdcard(self): + sd = io.SDCard() + sd.present() + +if __name__ == '__main__': + unittest.main()