Belle II Software
light-2409-toyger
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
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 Sat Sep 28 2024 03:41:43 for Belle II Software by
1.9.6