def testBounty(ip, btc, rwd, desc, data=None): #pragma: no cover safeprint(desc) test = bounty.Bounty(ip,btc,rwd,dataDict=data) dumped = pickle.dumps(test,1) safeprint(bounty.addBounty(dumped))
def addBounty(bounty): """Verify a bounty, and add it to the list if it is valid""" from common.bounty import addBounty addBounty(bounty)
def addBounty(bounty): """Verify a bounty, and add it to the list if it is valid""" from common.bounty import addBounty return addBounty(bounty)
def testBounty(ip, btc, rwd, desc, data=None): #pragma: no cover safeprint(desc) test = bounty.Bounty(ip, btc, rwd, dataDict=data) dumped = pickle.dumps(test, 1) safeprint(bounty.addBounty(dumped))