Merge "Replace assertItemsEqual with assertCountEqual"
This commit is contained in:
commit
00e88822e3
@ -92,7 +92,7 @@ class TestMultiKeyValueAction(utils.TestCase):
|
|||||||
{'req1': 'aaa', 'req2': 'bbb'},
|
{'req1': 'aaa', 'req2': 'bbb'},
|
||||||
{'req1': '', 'req2': ''},
|
{'req1': '', 'req2': ''},
|
||||||
]
|
]
|
||||||
self.assertItemsEqual(expect, actual)
|
self.assertCountEqual(expect, actual)
|
||||||
|
|
||||||
def test_empty_required_optional(self):
|
def test_empty_required_optional(self):
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
@ -116,7 +116,7 @@ class TestMultiKeyValueAction(utils.TestCase):
|
|||||||
{'req1': 'aaa', 'req2': 'bbb'},
|
{'req1': 'aaa', 'req2': 'bbb'},
|
||||||
{'req1': '', 'req2': ''},
|
{'req1': '', 'req2': ''},
|
||||||
]
|
]
|
||||||
self.assertItemsEqual(expect, actual)
|
self.assertCountEqual(expect, actual)
|
||||||
|
|
||||||
def test_error_values_with_comma(self):
|
def test_error_values_with_comma(self):
|
||||||
self.assertRaises(
|
self.assertRaises(
|
||||||
|
Loading…
Reference in New Issue
Block a user