Add test for USB version string

This commit is contained in:
NIIBE Yutaka
2012-08-02 17:44:08 +09:00
parent 61ec9b7ed7
commit 7575dda42a
3 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
@usb
Feature: examine USB version string
In order to work as Gnuk Token
A token should support version string
Scenario: USB version string
Given USB version string of the token
Then data should match: ([a-zA-Z0-9]*)-([.0-9]+)-[0-9A-F]+

View File

@@ -108,6 +108,9 @@ def encrypt_on_host_public_key():
def decrypt():
scc.result = ftc.token.cmd_pso_longdata(0x80, 0x86, scc.ciphertext)
@Given("USB version string of the token")
def usb_version_string():
scc.result = ftc.token.get_string(3)
@When("requesting (.+): ([0-9a-fA-F]+)")
def get_data(name, tag_str):