mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
14 lines
331 B
Python
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()
|