Skip to content

Commit beb0260

Browse files
committed
Test token search working
1 parent 2828f03 commit beb0260

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/test_slots_and_tokens.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,7 @@ def test_init_token(self):
8888
raise AssertionError("No Uninitialized token found")
8989

9090
lib.reinitialize()
91-
updated_tokens = lib.get_tokens()
91+
token, *_ = lib.get_tokens(token_label=temp_token_label)
9292

93-
for token in updated_tokens:
94-
if pkcs11.TokenFlag.USER_PIN_INITIALIZED not in token.flags and\
95-
pkcs11.TokenFlag.TOKEN_INITIALIZED in token.flags:
96-
self.assertEqual(token.label, temp_token_label)
97-
98-
'''
99-
self.assertEqual(token.label, temp_token_label)
10093
self.assertIn(pkcs11.TokenFlag.TOKEN_INITIALIZED, token.flags)
10194
self.assertNotIn(pkcs11.TokenFlag.USER_PIN_INITIALIZED, token.flags)
102-
'''

0 commit comments

Comments
 (0)