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

This commit is contained in:
Zuul 2020-07-08 09:40:57 +00:00 committed by Gerrit Code Review
commit 695f5ecbab
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ class RandomNameTestCase(test.TestCase):
name = "foo"
self.assertFalse(utils.name_matches_object(name, One, Two))
# ensure that exactly one of the two objects is checked
self.assertItemsEqual(
self.assertCountEqual(
One.name_matches_object.call_args_list
+ Two.name_matches_object.call_args_list,
[mock.call(name)])