Skip to content

test(hive): fix assertEqual signature — all 5 hive tests green on emulator#22

Merged
BitHighlander merged 1 commit into
masterfrom
fix/hive-tests-assertequal
Jun 27, 2026
Merged

test(hive): fix assertEqual signature — all 5 hive tests green on emulator#22
BitHighlander merged 1 commit into
masterfrom
fix/hive-tests-assertequal

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Follow-up to #21. KeepKeyTest overrides assertEqual(self, lhs, rhs) with no msg parameter, so the field-binding assertEqual(a, b, "label") calls raised TypeError. Drops the message args.

Verified on the feature/hive emulator (build-emu/bin/kkemu, fw 7.15.0, UDP transport + DebugLink auto-confirm):

test_hive_get_public_key_active     PASSED
test_hive_get_public_keys_all_roles PASSED
test_hive_sign_account_create       PASSED
test_hive_sign_account_update       PASSED
test_hive_sign_transfer             PASSED
5 passed

The signing tests pass with signature recovery (recovers to the device owner/active key) and full serialized_tx field-binding (creator, account name, each role key in its authority slot). This empirically validates the attestation-digest contract (keepkey-vault docs/HIVE-ATTESTATION-DIGEST-SPEC.md) against real firmware.

KeepKeyTest overrides assertEqual(self, lhs, rhs) with no msg parameter, so the
3-arg calls raised TypeError. Verified: all 5 tests pass against the feature/hive
emulator (build-emu/bin/kkemu, fw 7.15.0) — get_public_key(s), sign_tx,
sign_account_create, sign_account_update, with signature recovery + full
serialized_tx field-binding.
@BitHighlander
BitHighlander merged commit ae1d39c into master Jun 27, 2026
5 of 6 checks passed
@BitHighlander
BitHighlander deleted the fix/hive-tests-assertequal branch June 27, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant