@@ -132,7 +132,7 @@ def get_post_refresh_keys_response_with_no_default_keyset_key():
132132
133133 with self .assertRaises (EncryptionError ) as context :
134134 client .encrypt (example_uid )
135- self .assertEqual ("(' No Keyset Key Found',) " , str (context .exception ))
135+ self .assertEqual ("No Keyset Key Found" , str (context .exception ))
136136
137137 def test_cannot_encrypt_if_theres_no_default_keyset_header (self , mock_refresh_keys_util ):
138138 def get_post_refresh_keys_response_with_no_default_keyset_header ():
@@ -146,7 +146,7 @@ def get_post_refresh_keys_response_with_no_default_keyset_header():
146146
147147 with self .assertRaises (EncryptionError ) as context :
148148 client .encrypt (example_uid )
149- self .assertEqual ("(' No Keyset Key Found',) " , str (context .exception ))
149+ self .assertEqual ("No Keyset Key Found" , str (context .exception ))
150150
151151 def test_expiry_in_token_matches_expiry_in_response (self , mock_refresh_keys_util ):
152152 def get_post_refresh_keys_response_with_token_expiry ():
@@ -185,7 +185,7 @@ def get_post_refresh_keys_response_with_key_inactive():
185185
186186 with self .assertRaises (EncryptionError ) as context :
187187 client .encrypt (example_uid )
188- self .assertEqual ("(' No Keyset Key Found',) " , str (context .exception ))
188+ self .assertEqual ("No Keyset Key Found" , str (context .exception ))
189189
190190 def test_encrypt_key_expired (self , mock_refresh_keys_util ):
191191 def get_post_refresh_keys_response_with_key_expired ():
@@ -199,4 +199,4 @@ def get_post_refresh_keys_response_with_key_expired():
199199
200200 with self .assertRaises (EncryptionError ) as context :
201201 client .encrypt (example_uid )
202- self .assertEqual ("(' No Keyset Key Found',) " , str (context .exception ))
202+ self .assertEqual ("No Keyset Key Found" , str (context .exception ))
0 commit comments