diff --git a/src/_zkapauthorizer/tests/test_model.py b/src/_zkapauthorizer/tests/test_model.py index 1289f3aad35aee91cf129ab04aa43b3d28671150..27fbcab25f7d9597c28ee61372c080c86df6cf07 100644 --- a/src/_zkapauthorizer/tests/test_model.py +++ b/src/_zkapauthorizer/tests/test_model.py @@ -481,7 +481,11 @@ class UnblindedTokenStoreTests(TestCase): store.add(voucher_value, lambda: random_tokens) store.insert_unblinded_tokens_for_voucher(voucher_value, public_key, unblinded_tokens) retrieved_tokens = store.extract_unblinded_tokens(len(random_tokens)) - self.expectThat(unblinded_tokens, AfterPreprocessing(sorted, Equals(retrieved_tokens))) + + self.expectThat( + set(unblinded_tokens), + Equals(set(retrieved_tokens)), + ) # After extraction, the unblinded tokens are no longer available. self.assertThat(