We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2828f03 commit beb0260Copy full SHA for beb0260
tests/test_slots_and_tokens.py
@@ -88,15 +88,7 @@ def test_init_token(self):
88
raise AssertionError("No Uninitialized token found")
89
90
lib.reinitialize()
91
- updated_tokens = lib.get_tokens()
+ token, *_ = lib.get_tokens(token_label=temp_token_label)
92
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
100
self.assertIn(pkcs11.TokenFlag.TOKEN_INITIALIZED, token.flags)
101
self.assertNotIn(pkcs11.TokenFlag.USER_PIN_INITIALIZED, token.flags)
102
0 commit comments