Belle II Software
development
test_basf2_utils.py
1
#!/usr/bin/env python3
2
3
10
import
unittest
11
import
unittest.mock
12
import
basf2.utils
as
ut
13
import
os
14
15
16
class
TestBasf2Utils
(unittest.TestCase):
17
"""Test the class to bsaf2.utils module"""
18
19
def
test_pretty_print_module
(self):
20
"""Check that pretty_print_module finishes without an error"""
21
os.environ.update({'PAGER'
:
"cat"
})
22
ut.pretty_print_module(ut,
"Test"
)
23
os.environ.pop(
"PAGER"
)
24
25
26
if
__name__ ==
"__main__"
:
27
# test everything
28
unittest.main()
test_basf2_utils.TestBasf2Utils
Definition:
test_basf2_utils.py:16
test_basf2_utils.TestBasf2Utils.test_pretty_print_module
def test_pretty_print_module(self)
Definition:
test_basf2_utils.py:19
basf2.utils
Definition:
utils.py:1
framework
tests
test_basf2_utils.py
Generated on Fri Nov 8 2024 02:38:04 for Belle II Software by
1.9.6