iota.py icon indicating copy to clipboard operation
iota.py copied to clipboard

Increase test coverage for `IsReattachableCommand`

Open lzpap opened this issue 5 years ago • 0 comments

The command itself doesn't have tests for the logic it implements.

Would be great to have some tests for IsReattachableCommandTestCase in is_reattachable_test.py.

Tests should cover:

  • An input transaction is found for the address, and it is confirmed.
  • An input transaction is found for the address, and it is not confirmed.
  • No transaction found for the address.
  • Transaction(s) found, but none of them are value transfers.
  • More transactions found, only the one with the latest attachement_timestamp is used.

lzpap avatar Feb 10 '20 12:02 lzpap