def test_invalid_transaction(self): # add invalid flag to _create transaction txn_list = self._create_transactions(1, valid=False) txn = txn_list[0] valid = verifier.validate_transaction(txn) self.assertFalse(valid)
def test_valid_transaction(self): txn_list = self._create_transactions(1) txn = txn_list[0] valid = verifier.validate_transaction(txn) self.assertTrue(valid)