Merge "Switch from unittest2 compat methods to Python 3.x methods"

This commit is contained in:
Zuul 2020-07-15 16:15:55 +00:00 committed by Gerrit Code Review
commit 769d057c6b
1 changed files with 1 additions and 1 deletions

View File

@ -4612,7 +4612,7 @@ class TestImagesSerializer(test_utils.BaseTestCase):
self.assertEqual(http.CREATED, response.status_int)
header_value = response.headers.get(header_name)
self.assertIsNotNone(header_value)
self.assertItemsEqual(enabled_methods, header_value.split(','))
self.assertCountEqual(enabled_methods, header_value.split(','))
# check single method
self.config(enabled_import_methods=['swift-party-time'])