diff options
author | Henryk Plötz <henryk@ploetzli.ch> | 2010-10-15 17:58:54 +0200 |
---|---|---|
committer | Henryk Plötz <henryk@ploetzli.ch> | 2010-10-15 17:58:54 +0200 |
commit | 20b8d8167ee864c88287412da224d93c17381a08 (patch) | |
tree | 6da5a168fcc5244d168e086be4070c561d89ea21 /tests/utilstest.py | |
parent | 2cc37817d7fbc0f2f10cf09090f9ac06f6bbbc7e (diff) |
Add generic response chaining capability
Diffstat (limited to 'tests/utilstest.py')
-rw-r--r-- | tests/utilstest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/utilstest.py b/tests/utilstest.py index 65b74b6..42d34f4 100644 --- a/tests/utilstest.py +++ b/tests/utilstest.py @@ -36,3 +36,12 @@ class APDUCase1Tests(unittest.TestCase): self.assertEqual(self.a4.render(), a4_2.render()) +class APDUChainTests(unittest.TestCase): + + def testChain(self): + a = utils.R_APDU("abcd\x61\x04") + b = utils.R_APDU("efgh\x90\x00") + + c = a.append(b) + + self.assertEqual("abcdefgh\x90\x00", c.render()) |