ATLAS Offline Software
Public Member Functions | List of all members
python.AnaAlgorithmConfig.TestAlgTypeAndName Class Reference

Test case for the algorithm type/name handling. More...

Inheritance diagram for python.AnaAlgorithmConfig.TestAlgTypeAndName:
Collaboration diagram for python.AnaAlgorithmConfig.TestAlgTypeAndName:

Public Member Functions

def test_singletypename (self)
 Test that the type and name are set correctly when using a single argument. More...
 
def test_typeandname (self)
 Test that specifying the type and name separately in the same string works as expected. More...
 

Detailed Description

Test case for the algorithm type/name handling.

Definition at line 420 of file AnaAlgorithmConfig.py.

Member Function Documentation

◆ test_singletypename()

def python.AnaAlgorithmConfig.TestAlgTypeAndName.test_singletypename (   self)

Test that the type and name are set correctly when using a single argument.

Definition at line 424 of file AnaAlgorithmConfig.py.

424  def test_singletypename( self ):
425  config1 = AnaAlgorithmConfig( "TypeName" )
426  self.assertEqual( config1.type(), "TypeName" )
427  self.assertEqual( config1.name(), "TypeName" )
428  config2 = AnaAlgorithmConfig( "NS::SomeType" )
429  self.assertEqual( config2.type(), "NS::SomeType" )
430  self.assertEqual( config2.name(), "NS::SomeType" )
431  pass
432 

◆ test_typeandname()

def python.AnaAlgorithmConfig.TestAlgTypeAndName.test_typeandname (   self)

Test that specifying the type and name separately in the same string works as expected.

Definition at line 435 of file AnaAlgorithmConfig.py.

435  def test_typeandname( self ):
436  config1 = AnaAlgorithmConfig( "TypeName/InstanceName" )
437  self.assertEqual( config1.type(), "TypeName" )
438  self.assertEqual( config1.name(), "InstanceName" )
439  config2 = AnaAlgorithmConfig( "NS::SomeType/Instance" )
440  self.assertEqual( config2.type(), "NS::SomeType" )
441  self.assertEqual( config2.name(), "Instance" )
442  pass
443 

The documentation for this class was generated from the following file: