def test_check_revocation_address_mismatch(self): not_revoked = v.check_revocation(tx_json={u'out': [{u'addr': u'ADDR1', u'spent': False}]}, revoke_address='ADDR2') self.assertEqual(not_revoked, False)
def test_check_revocation_multiple_txs_revoked(self): not_revoked = v.check_revocation(tx_json={u'out': [{u'addr': u'ADDR1', u'spent': False}, {u'addr': u'ADDR2', u'spent': True}]}, revoke_address='ADDR2') self.assertEqual(not_revoked, False)
def test_check_revocation_is_spent(self): not_revoked = v.check_revocation(tx_json={u'out': [{u'addr': u'ADDR1', u'spent': True}]}, revoke_address='ADDR1') self.assertEqual(not_revoked, False)