gaudirun.py -v-n from Gaudi.Configuration import * class TestAlg(ConfigurableUser): __slots__ = { "Dict": { "a": 1 }, "List": [ "a", "b" ] } def getGaudiType(self): return "Test" # To avoid skipping of ConfigurableUser alg1 = TestAlg("Test1", Dict = { "b": 10 }, List = [ "A", "B" ]) alg2 = alg1.clone("Test2") alg2.Dict["a"] = 20 alg2.List.append("C") conf_dict = eval('\n'.join(stdout.splitlines())) expected = { 'Test1': { 'Dict': { "b": 10 }, 'List': [ "A", "B" ] }, 'Test2': { 'Dict': { "a": 20 , "b": 10 }, 'List': [ "A", "B", "C" ] } } if conf_dict != expected: causes.append("configuration result") from pprint import PrettyPrinter pp = PrettyPrinter() result["GaudiTest.configuration.expected"] = result.Quote(pp.pformat(expected)) result["GaudiTest.configuration.found"] = result.Quote(pp.pformat(conf_dict))