Skip to content

Commit

Permalink
Add test to derivation path veggining by m/
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Nov 8, 2023
1 parent 64d7b21 commit c0fe2b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_ledger_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ def test_add_account(self, mock_get_account_by_path: MagicMock):
ledger_account = list(ledger_manager.accounts)[0]
self.assertEqual(ledger_account.address, account_address)
self.assertEqual(ledger_account.path, derivation_path)
# Should accept derivation paths started with master
master_derivation_path = "m/44'/60'/0'/0"
self.assertEqual(
ledger_manager.add_account(master_derivation_path), account_address
)

def test_delete_account(self):
ledger_manager = LedgerManager()
Expand Down

0 comments on commit c0fe2b0

Please sign in to comment.