Replace deprecated assertDictContainsSubset
The method is deprecated since Python 3.2[1] and shows the following DeprecationWarning. /usr/lib/python3.9/unittest/case.py:1134: DeprecationWarning: assertDictContainsSubset is deprecated warnings.warn('assertDictContainsSubset is deprecated', [1] https://docs.python.org/3/whatsnew/3.2.html#unittest Change-Id: I8cc3b29ff5e1635143761bf4c072d57cd78d3138
This commit is contained in:
parent
24291c8520
commit
ee6775cfe3
|
@ -445,7 +445,7 @@ class TestCLI(BaseCLITest):
|
|||
{u'id': 201, u'name': u'vlan201'},
|
||||
{u'id': 203, u'name': u'vlan203'}]}
|
||||
|
||||
self.assertDictContainsSubset(expected, res)
|
||||
self.assertLessEqual(expected.items(), res.items())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue