1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00
trezor-firmware/tests/test_trezor.debug.py

14 lines
331 B
Python
Raw Normal View History

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()