Esempio n. 1
0
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))
Esempio n. 2
0
def addBounty(bounty):
    """Verify a bounty, and add it to the list if it is valid"""
    from common.bounty import addBounty
    addBounty(bounty)
Esempio n. 3
0
def addBounty(bounty):
    """Verify a bounty, and add it to the list if it is valid"""
    from common.bounty import addBounty
    return addBounty(bounty)
Esempio n. 4
0
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))