diff options
Diffstat (limited to 'tests/test_draft_keyprov.doctest')
-rw-r--r-- | tests/test_draft_keyprov.doctest | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/test_draft_keyprov.doctest b/tests/test_draft_keyprov.doctest index f01299d..8cd5f64 100644 --- a/tests/test_draft_keyprov.doctest +++ b/tests/test_draft_keyprov.doctest @@ -1,7 +1,7 @@ test_draft_keyprov.doctest - test for examples from draft-hoyer-keyprov-pskc-algorithm-profiles-01 -Copyright (C) 2014 Arthur de Jong +Copyright (C) 2014-2015 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +>>> def tostr(x): +... return str(x.decode()) + >>> from pskc import PSKC @@ -50,7 +53,7 @@ draft-hoyer-keyprov-pskc-algorithm-profiles-01. 'DECIMAL' >>> key.response_length 8 ->>> key.secret +>>> tostr(key.secret) '12345678901234567890' >>> key.counter 0 @@ -79,7 +82,7 @@ described in section 4 of draft-hoyer-keyprov-pskc-algorithm-profiles-01. 'DECIMAL' >>> key.response_length 6 ->>> key.secret +>>> tostr(key.secret) '12345678901234567890' >>> key.time_offset 0 @@ -112,7 +115,7 @@ described in section 6 of draft-hoyer-keyprov-pskc-algorithm-profiles-01. 'DECIMAL' >>> key.response_length 6 ->>> key.secret +>>> tostr(key.secret) '12345678901234567890' >>> key.counter 0 @@ -145,7 +148,7 @@ described in section 8 of draft-hoyer-keyprov-pskc-algorithm-profiles-01. 'DECIMAL' >>> key.response_length 8 ->>> key.secret +>>> tostr(key.secret) '12345678901234567890' >>> key.counter 0 |