Remove unused function
During the code,the function assertDictEqual() seems no use, so,I decide to remove it. Change-Id: Ib06d9af64b24d27d506d2ca554bfe1408ed79c2b
This commit is contained in:
parent
1c85ce9f5a
commit
2633f03b58
|
@ -56,19 +56,6 @@ class TestCase(testtools.TestCase):
|
|||
standardMsg = '%s is not an instance of %r' % (obj, cls)
|
||||
self.fail(self._formatMessage(msg, standardMsg))
|
||||
|
||||
def assertDictEqual(self, d1, d2, msg=None):
|
||||
# Simple version taken from 2.7
|
||||
self.assertIsInstance(d1, dict,
|
||||
'First argument is not a dictionary')
|
||||
self.assertIsInstance(d2, dict,
|
||||
'Second argument is not a dictionary')
|
||||
if d1 != d2:
|
||||
if msg:
|
||||
self.fail(msg)
|
||||
else:
|
||||
standardMsg = '%r != %r' % (d1, d2)
|
||||
self.fail(standardMsg)
|
||||
|
||||
|
||||
class TestCommand(TestCase):
|
||||
"""Test cliff command classes"""
|
||||
|
|
Loading…
Reference in New Issue