From b3604f49ba9041ec76cc9cb77d02d51f6b371dac Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Wed, 24 Apr 2019 19:00:32 -0400 Subject: [PATCH] use ctap2 instead of client --- tools/testing/tests/solo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/testing/tests/solo.py b/tools/testing/tests/solo.py index 4ad0b3f..0f3fbca 100644 --- a/tools/testing/tests/solo.py +++ b/tools/testing/tests/solo.py @@ -48,13 +48,11 @@ class SoloTests(Tester): sc.exchange = sc.exchange_fido2 req = SoloClient.format_request(SoloExtension.version, 0, b"A" * 16) - assertions, client_data = sc.client.get_assertion( - sc.host, "B" * 32, [{"id": req, "type": "public-key"}] + a = sc.ctap2.get_assertion( + sc.host, b"B" * 32, [{"id": req, "type": "public-key"}] ) with Test("Test custom command returned valid assertion"): - assert len(assertions) == 1 - a = assertions[0] assert a.auth_data.rp_id_hash == sha256(sc.host.encode("utf8")) assert a.credential["id"] == req assert (a.auth_data.flags & 0x5) == 0x5