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_variables_collections.py
1
#!/usr/bin/env python3
2
3
10
11
import
unittest
12
import
variables.collections
as
vc
13
from
variables
import
variables
as
vm
14
15
16
class
TestVariableCollections
(unittest.TestCase):
17
"""Test case for the variables.collections """
18
19
def
test_collections
(self):
20
""" Loads all variables from collections into variable manager """
21
excluded = [
'utils'
,
'name'
,
'value'
]
22
for
collection
in
dir(vc):
23
if
(collection.startswith(
'__'
)
or
collection
in
excluded):
24
continue
25
var_collection = getattr(vc, collection)
26
for
variable_name
in
var_collection:
27
variable = vm.getVariable(variable_name)
28
self.assertNotEqual(variable,
None
)
29
30
31
if
__name__ ==
'__main__'
:
32
unittest.main()
test_variables_collections.TestVariableCollections
Definition:
test_variables_collections.py:16
test_variables_collections.TestVariableCollections.test_collections
def test_collections(self)
Definition:
test_variables_collections.py:19
variables.collections
Definition:
collections.py:1
analysis
tests
test_variables_collections.py
Generated on Wed Apr 9 2025 02:35:06 for Belle II Software by
1.9.6