def request(address, target): balance = unpaid_balance(address) main.sendMessage(target, 'nicehash.balance', balance=balance)
def test_bad_address(self): self.assertRaises(nicehash.APIError, lambda: nicehash.unpaid_balance('x'))
def post_balance(address, target): balance = nicehash.unpaid_balance(address) wx.PostEvent(target, NewBalanceEvent(balance=balance))
def test_balance(self): balance = nicehash.unpaid_balance('3Qe7nT9hBSVoXr8rM2TG6pq82AmLVKHy23') self.assertGreaterEqual(balance, 0.0)