Skip to content

Commit

Permalink
Test token search working
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwolfe committed Feb 7, 2021
1 parent 2828f03 commit beb0260
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/test_slots_and_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,7 @@ def test_init_token(self):
raise AssertionError("No Uninitialized token found")

lib.reinitialize()
updated_tokens = lib.get_tokens()
token, *_ = lib.get_tokens(token_label=temp_token_label)

for token in updated_tokens:
if pkcs11.TokenFlag.USER_PIN_INITIALIZED not in token.flags and\
pkcs11.TokenFlag.TOKEN_INITIALIZED in token.flags:
self.assertEqual(token.label, temp_token_label)

'''
self.assertEqual(token.label, temp_token_label)
self.assertIn(pkcs11.TokenFlag.TOKEN_INITIALIZED, token.flags)
self.assertNotIn(pkcs11.TokenFlag.USER_PIN_INITIALIZED, token.flags)
'''

0 comments on commit beb0260

Please sign in to comment.