Skip to content

Commit

Permalink
fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Feb 9, 2016
1 parent 80b9094 commit 3115c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyeleven/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def test_find_key(self):

def test_sign(self):
os.environ['SOFTHSM_CONF'] = softhsm_conf
with pk11.pkcs11(P11_MODULE, 0, "secret1") as session:
key, cert = find_key(session, 'test')
signed = intarray2bytes(session.sign(key, 'test', mechanism('RSAPKCS1')))
with pk11.pkcs11(P11_MODULE, 0, "secret1") as si:
key, cert = find_key(si, 'test')
signed = intarray2bytes(si.session.sign(key, 'test', mechanism('RSAPKCS1')))
assert signed is not None

0 comments on commit 3115c59

Please sign in to comment.