def METHOD_NAME(VERIFYMULTISIG_PATH, LOCAL_TESTRUN_FOLDER):
	VERIFYMULTISIG_PATH, LOCAL_TESTRUN_FOLDER = appendSlash([VERIFYMULTISIG_PATH, LOCAL_TESTRUN_FOLDER])
	genkeypair = LOCAL_TESTRUN_FOLDER + "genkeypair"
	signmultisig = LOCAL_TESTRUN_FOLDER + "signmultisig"
	verifymultisig = VERIFYMULTISIG_PATH + "VerifyMultiSignature"
	message = generateRandomMessage()
	keypairs_num = random.randint(1,10)
	keypairs = []
	# Generate keypairs (sort by public key)
	for x in range(0, keypairs_num):
		process = Popen([ genkeypair ], stdout=PIPE)
		(output, err) = process.communicate()
		exit_code = process.wait()
		keys = output.strip().split(" ")
		keypairs.append({'pubk':keys[0], 'privk':keys[1]})
	# Store keys list in text files
	pubk_file = LOCAL_TESTRUN_FOLDER + 'pubkeys.txt'
	privk_file = LOCAL_TESTRUN_FOLDER + 'privkeys.txt'
	keysToFile(pubk_file, keypairs, 'pubk')
	keysToFile(privk_file, keypairs, 'privk')		
	# Generate signature of a message with signmultisig
        process = Popen([ signmultisig, "-m", message, "-i", privk_file, "-u", pubk_file ], stdout=PIPE)
        (output, err) = process.communicate()
        exit_code = process.wait()
        signature = output.strip()
	# Verify signature of a message with VerifyMultiSignature
        process = Popen([ verifymultisig, "-m", message, "-s", signature, "-u", pubk_file ], stdout=PIPE)
        (output, err) = process.communicate()
        exit_code = process.wait()
        ret_status = process.returncode
	if ret_status == 0:
		print("Test passed")
	else:
		print("Test failed")
		sys.exit(1)		