1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-11 18:39:05 +00:00
trezor-firmware/tests/test_trezor.debug.py
2016-11-06 17:04:25 +01:00

14 lines
331 B
Python

from common import *
from trezor import debug
class TestDebug(unittest.TestCase):
def test_memaccess(self):
data = debug.memaccess(0, 1024)
# don't access contents (will segfault), just the length of the returned data
self.assertEqual(len(data), 1024)
if __name__ == '__main__':
unittest.main()