mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
core/tests: test debug is on
This commit is contained in:
parent
5677c254b1
commit
a316347bf1
13
core/tests/test_unittest.py
Normal file
13
core/tests/test_unittest.py
Normal file
@ -0,0 +1,13 @@
|
||||
from common import *
|
||||
|
||||
|
||||
class TestUnittest(unittest.TestCase):
|
||||
|
||||
def test_debug(self):
|
||||
if not __debug__:
|
||||
# Fail the test if debug is turned off, because `assert` is not executed then.
|
||||
self.assertTrue(False)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Loading…
Reference in New Issue
Block a user