Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def test_missing_attribute_kek_unrwap(self, storage_account_name, storage_accoun
with self.assertRaises(HttpResponseError) as e:
queue.peek_messages()

self.assertEqual(str(e.exception), "Decryption failed.")
assert "Decryption failed." in str(e.exception)

invalid_key_2 = lambda: None # functions are objects, so this effectively creates an empty object
invalid_key_2.get_kid = valid_key.get_kid
Expand Down Expand Up @@ -473,7 +473,7 @@ def test_encryption_nonmatching_kid(self, storage_account_name, storage_account_
with self.assertRaises(HttpResponseError) as e:
next(queue.receive_messages())

self.assertEqual(str(e.exception), "Decryption failed.")
assert "Decryption failed." in str(e.exception)


# ------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ async def test_missing_attribute_kek_unrwap(self, storage_account_name, storage_
with self.assertRaises(HttpResponseError) as e:
await queue.peek_messages()

self.assertEqual(str(e.exception), "Decryption failed.")
assert "Decryption failed." in str(e.exception)

invalid_key_2 = lambda: None # functions are objects, so this effectively creates an empty object
invalid_key_2.get_kid = valid_key.get_kid
Expand Down Expand Up @@ -522,7 +522,7 @@ async def test_encryption_nonmatching_kid(self, storage_account_name, storage_ac
async for m in queue.receive_messages():
messages.append(m)

self.assertEqual(str(e.exception), "Decryption failed.")
assert "Decryption failed." in str(e.exception)

# ------------------------------------------------------------------------------
if __name__ == '__main__':
Expand Down