Replace deprecated assertItemsEqual

It has been provided by testtools to ease migration from python 2, but
was deprecated in 2.7.2[1] and will be removed in 2.8.0[2].

[1] https://github.com/testing-cabal/testtools/commit/e0d56b7ce65ae5b3d
[2] https://github.com/testing-cabal/testtools/commit/f01e86084e6a858d1

Change-Id: Iabbf733bcdb8f46b11fbaa19d8a944fbb8e9fe02
This commit is contained in:
Takashi Kajinami
2025-06-27 23:46:40 +09:00
parent 45627cf408
commit e946208011

View File

@@ -808,7 +808,7 @@ class MessageControllerTest(ControllerBaseTest):
stored_messages = self.controller.list(self.queue_name,
project=self.project)
self.assertItemsEqual(['event.data', 'backupId'],
self.assertCountEqual(['event.data', 'backupId'],
list(next(stored_messages))[0]['body'].keys())
def test_delete_message_from_nonexistent_queue(self):