Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
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
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
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
_
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
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
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 Wed Apr 9 2025 02:41:02 for Belle II Software by
1.9.6