Definition at line 221 of file CFElements.py.
◆ setUp()
def python.CFElements.TestCF.setUp |
( |
|
self | ) |
|
Definition at line 222 of file CFElements.py.
223 import AthenaPython.PyAthena
as PyAthena
226 top.Members += [
parOR(
"nest1")]
228 top.Members += [nest2]
230 nest2.Members += [
parOR(
"deep_nest1")]
231 nest2.Members += [
parOR(
"deep_nest2")]
◆ test_findAlgorithms()
def python.CFElements.TestCF.test_findAlgorithms |
( |
|
self | ) |
|
Definition at line 301 of file CFElements.py.
301 def test_findAlgorithms( self ):
303 self.assertIsNotNone( a1,
"Can't find algorithm present in sequence" )
306 self.assertIsNotNone( a1,
"Can't find nested algorithm " )
311 self.assertIsNone( a1,
"Finding algorithm that is in the upper sequence" )
314 self.assertIsNone( a1,
"Finding algorithm that is does not exist" )
317 self.assertIsNotNone( a1,
"Could not find algorithm within the required nesting depth == 1" )
320 self.assertIsNone( a1,
"Could find algorithm even if it is deep in sequences structure" )
323 self.assertIsNotNone( a1,
"Could not find algorithm within the required nesting depth == 2" )
326 self.assertIsNotNone( a1
is None,
"Could find algorithm even if it is deep in sequences structure" )
◆ test_findDeep()
def python.CFElements.TestCF.test_findDeep |
( |
|
self | ) |
|
Definition at line 247 of file CFElements.py.
247 def test_findDeep( self ):
250 self.assertIsNotNone( d,
"Deep searching for sub seqeunce fails" )
251 self.assertEqual( d.getName(),
"deep_nest2",
"Wrong sub sequence in deep search" )
◆ test_findMissing()
def python.CFElements.TestCF.test_findMissing |
( |
|
self | ) |
|
Definition at line 253 of file CFElements.py.
253 def test_findMissing( self ):
256 self.assertIsNone( d,
"Algorithm confused as a sequence" )
260 self.assertIsNone( inexistent,
"ERROR, found sub sequence that does not relay exist" )
264 self.assertIsNone( inexistent,
"ERROR, found owner of inexistent sequence " )
◆ test_findRespectingScope()
def python.CFElements.TestCF.test_findRespectingScope |
( |
|
self | ) |
|
Definition at line 266 of file CFElements.py.
266 def test_findRespectingScope( self ):
268 self.assertEqual( owner.getName(),
"nest2",
"Wrong owner %s" % owner.getName() )
271 self.assertEqual( owner.getName(),
"nest2",
"Wrong owner %s" % owner.getName() )
274 self.assertEqual( owner.getName(),
"nest2",
"Wrong owner %s" % owner.getName() )
277 self.assertEqual( owner.getName() ,
"top",
"Wrong owner %s" % owner.getName() )
◆ test_findTop()
def python.CFElements.TestCF.test_findTop |
( |
|
self | ) |
|
Definition at line 238 of file CFElements.py.
238 def test_findTop( self ):
240 self.assertIsNotNone( f,
"Can not find sequence at start" )
241 self.assertEqual( f.getName(),
"top",
"Wrong sequence" )
244 self.assertIsNotNone( nest2,
"Can not find sub sequence" )
245 self.assertEqual( nest2.getName(),
"nest2",
"Sub sequence incorrect" )
◆ test_iterSequences()
def python.CFElements.TestCF.test_iterSequences |
( |
|
self | ) |
|
Definition at line 279 of file CFElements.py.
279 def test_iterSequences( self ):
281 result = [seq.getName()
for seq
in iterSequences( self.top )]
282 self.assertEqual( result, [
'top',
'nest1',
'nest2',
'deep_nest1',
'deep_nest2',
283 'SomeAlg1',
'SomeAlg2',
'SomeAlg3',
'SomeAlg0'] )
288 self.assertEqual( result, [
'nest2',
'deep_nest1',
'deep_nest2',
289 'SomeAlg1',
'SomeAlg2',
'SomeAlg3'] )
293 result = [seq.getName()
for seq
in iterSequences( deep_nest2 )]
294 self.assertEqual( result, [
'deep_nest2'] )
299 self.assertEqual( result, [
'SomeAlg1'] )
◆ top
python.CFElements.TestCF.top |
The documentation for this class was generated from the following file: