From 2633f03b58f7d65b0be47245014fac47c49a1929 Mon Sep 17 00:00:00 2001 From: shizhihui Date: Tue, 26 Jul 2016 20:13:26 +0800 Subject: Remove unused function During the code,the function assertDictEqual() seems no use, so,I decide to remove it. Change-Id: Ib06d9af64b24d27d506d2ca554bfe1408ed79c2b --- heatclient/tests/unit/osc/utils.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/heatclient/tests/unit/osc/utils.py b/heatclient/tests/unit/osc/utils.py index a3e5aaf..e2ed52e 100644 --- a/heatclient/tests/unit/osc/utils.py +++ b/heatclient/tests/unit/osc/utils.py @@ -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""" -- cgit v1.2.1