fix u2f tests

This commit is contained in:
merlokk 2019-07-05 12:39:32 +03:00
parent ed9689435d
commit fa9408d5d6

View File

@ -42,12 +42,14 @@ class U2FTests(Tester):
with Test("Check bad INS"): with Test("Check bad INS"):
try: try:
self.ctap1.send_apdu(0, 0, 0, 0, b"") self.ctap1.send_apdu(0, 0, 0, 0, b"")
assert False
except ApduError as e: except ApduError as e:
assert e.code == 0x6D00 assert e.code == 0x6D00
with Test("Check bad CLA"): with Test("Check bad CLA"):
try: try:
self.ctap1.send_apdu(1, CTAP1.INS.VERSION, 0, 0, b"abc") self.ctap1.send_apdu(1, CTAP1.INS.VERSION, 0, 0, b"abc")
assert False
except ApduError as e: except ApduError as e:
assert e.code == 0x6E00 assert e.code == 0x6E00