def test_set_rpath(self, check_call, _0, _1): patcher = Patchelf() patcher.set_rpath("test.so", "$ORIGIN/.lib") check_call_expected_args = [call(['patchelf', '--remove-rpath', 'test.so']), call(['patchelf', '--force-rpath', '--set-rpath', '$ORIGIN/.lib', 'test.so'])] assert check_call.call_args_list == check_call_expected_args
def test_set_rpath(self, check_call, _0, _1): patcher = Patchelf() patcher.set_rpath("test.so", "$ORIGIN/.lib") check_call_expected_args = [ call(["patchelf", "--remove-rpath", "test.so"]), call( ["patchelf", "--force-rpath", "--set-rpath", "$ORIGIN/.lib", "test.so"] ), ] assert check_call.call_args_list == check_call_expected_args