def test_VoidEventSelection_code_integrity():

    sel00 = AutomaticData(Location='Phys/Sel00x/Particles')

    ves01 = VoidEventSelection('VES01',
                               Code='Test (<Location>) > X',
                               RequiredSelection=sel00)
    coderef = "Test ('Phys/Sel00x/Particles') > X"

    assert ves01.algorithm().Code == coderef

    ves02 = VoidEventSelection('VES02',
                               Code="Test (<Location>) > X",
                               RequiredSelection=sel00)
    assert ves02.algorithm().Code == coderef

    ves03 = VoidEventSelection('VES03',
                               Code="Test ('<Location>') > X",
                               RequiredSelection=sel00)
    assert ves03.algorithm().Code == coderef

    ves04 = VoidEventSelection('VES04',
                               Code='Test (\'<Location>\') > X',
                               RequiredSelection=sel00)
    assert ves04.algorithm().Code == coderef
def test_VoidEventSelection():
    sel00 = AutomaticData(Location='Phys/Sel00x/Particles')
    ves00 = VoidEventSelection('VES00',
                               Code='Test (<Location>) > X',
                               RequiredSelection=sel00)
    assert sel00.outputLocation() == ves00.outputLocation()
    assert ves00.outputLocation() == 'Phys/Sel00x/Particles'
    assert ves00.algorithm().Code == "Test ('Phys/Sel00x/Particles') > X"