-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c618a7
commit 4d2ccf7
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from application_client.boilerplate_command_sender import BoilerplateCommandSender | ||
from application_client.boilerplate_response_unpacker import unpack_get_nonce_response | ||
|
||
# In this test we check the behavior of the device when asked to provide a nonce | ||
def test_nonce(backend): | ||
# Use the app interface instead of raw interface | ||
client = BoilerplateCommandSender(backend) | ||
# Send the GET_VERSION instruction | ||
rapdu = client.get_nonce() | ||
# Use an helper to parse the response, assert the values | ||
print(unpack_get_nonce_response(rapdu.data)) |