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_b2help_decay.py
1
8
9
import
subprocess
10
import
shlex
11
12
13
def
call_command(command):
14
"""Call command print output after having removed some lines from output
15
16
Args:
17
command (string): command to be called
18
"""
19
output = subprocess.check_output(shlex.split(command), encoding='utf-8'
).strip().split(
'\n'
)
20
return
output
21
22
23
if
__name__ ==
'__main__'
:
24
output = call_command(
'b2help-decay print 1111440100'
)
25
assert
len(output) > 10
26
output = call_command(
'b2help-decay print 1111440100.dec'
)
27
assert
len(output) > 10
28
output = call_command(
'b2help-decay find K_S0 J/psi B0'
)
29
assert
len(output) > 10
30
output = call_command(
'b2help-decay find K_S0 J/psi -m B0 -b'
)
31
assert
len(output) > 2
decfiles
tests
test_b2help_decay.py
Generated on Thu Apr 10 2025 02:33:57 for Belle II Software by
1.9.6