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

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

Inheritance diagram for python.PythonConfig.TestAlgTypeAndName:
Collaboration diagram for python.PythonConfig.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 425 of file PythonConfig.py.

Member Function Documentation

◆ test_singletypename()

def python.PythonConfig.TestAlgTypeAndName.test_singletypename (   self)

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

Definition at line 429 of file PythonConfig.py.

429  def test_singletypename( self ):
430  config1 = PythonConfig( "TypeName" )
431  self.assertEqual( config1.type(), "TypeName" )
432  self.assertEqual( config1.name(), "TypeName" )
433  config2 = PythonConfig( "NS::SomeType" )
434  self.assertEqual( config2.type(), "NS::SomeType" )
435  self.assertEqual( config2.name(), "NS::SomeType" )
436  pass
437 

◆ test_typeandname()

def python.PythonConfig.TestAlgTypeAndName.test_typeandname (   self)

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

Definition at line 440 of file PythonConfig.py.

440  def test_typeandname( self ):
441  config1 = PythonConfig( "TypeName/InstanceName" )
442  self.assertEqual( config1.type(), "TypeName" )
443  self.assertEqual( config1.name(), "InstanceName" )
444  config2 = PythonConfig( "NS::SomeType/Instance" )
445  self.assertEqual( config2.type(), "NS::SomeType" )
446  self.assertEqual( config2.name(), "Instance" )
447  pass
448 

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