Oh, you are overriding the method of geT_target_path() latter. My suggestion is no need to define a staticmethod just for getting a property of it. Using new_from_dumpxml() and .target_path in you test code is okey.