gaudirun.py -v --dry-run reference.py conf_dict = eval('\n'.join(stdout.splitlines())) expected = {'MyAlg': {'Cut': 20.0, 'File': 'C:\\something\\vXrY\\filename', 'Tool1': 'ThisTool', 'Tool2': 'MyToolType/MyToolType'}, 'MyAlg.MyTool': {'Cut': 20.0, 'WhichFile': 'C:\\something\\vXrY\\filename', 'WhichTool1': 'ThisTool', 'WhichTool2': 'MyToolType/MyToolType'}} 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))