def test_clone_returns_other_args_equal_to_original_args(self): args = DecompilerArguments( input_files=(StandaloneFile('file.exe'),), pdb_file=StandaloneFile('file.pdb'), config_file=StandaloneFile('file.json'), static_code_archive=StandaloneFile('file.a'), static_code_sigfile=StandaloneFile('file.sig'), arch='x86', mode='bin', hll='c', ar_index=0, ar_name='file.o', args='--arg' ) cloned_args = args.clone() self.assertIsNot(args, cloned_args) self.assertEqual(args, cloned_args)
def test_clone_preserves_instance_type(self): args = DecompilerArguments() cloned_args = args.clone() self.assertIsInstance(cloned_args, DecompilerArguments)