From a78d75f290278501b5d8130dc58420952a13e1a1 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Thu, 26 Jun 2014 17:06:38 -0500 Subject: Fix PEP8 H405 errors Change-Id: Id9ea03e7d88148f84bffe1b18b5b4315e6123012 --- openstackclient/tests/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'openstackclient/tests/utils.py') diff --git a/openstackclient/tests/utils.py b/openstackclient/tests/utils.py index ff7d8a33..48385d13 100644 --- a/openstackclient/tests/utils.py +++ b/openstackclient/tests/utils.py @@ -41,9 +41,8 @@ class TestCase(testtools.TestCase): if tuple(sys.version_info)[0:2] < (2, 7): def assertIsInstance(self, obj, cls, msg=None): - """Same as self.assertTrue(isinstance(obj, cls)), with a nicer - default message - """ + """self.assertTrue(isinstance(obj, cls)), with a nicer message""" + if not isinstance(obj, cls): standardMsg = '%s is not an instance of %r' % (obj, cls) self.fail(self._formatMessage(msg, standardMsg)) -- cgit v1.2.1