From 56336df6e1556555af8b83daf528e292cf19be7d Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 20 Jun 2014 22:13:38 +0200 Subject: [PATCH] pep8: fixed multiple violations Fixed violations: * E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' * E713 test for membership should be 'not in' * F402 import shadowed by loop variable * H305 imports not grouped correctly * H307 like imports should be grouped together' * H402 one line docstring needs punctuation' * H703 Multiple positional placeholders Also enabled H803 check that didn't have any violations. Change-Id: I957ab273ddc61b02763d6b60b21d11ed4e73d472 --- tests/unit/test_jsonutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_jsonutils.py b/tests/unit/test_jsonutils.py index 208c284..3105a69 100644 --- a/tests/unit/test_jsonutils.py +++ b/tests/unit/test_jsonutils.py @@ -195,9 +195,9 @@ class ToPrimitiveTestCase(test_base.BaseTestCase): self.assertEqual(len(ret), 3) self.assertTrue(ret[0].startswith(u".foo ' - 'at 0x')) + self.assertTrue(ret[1].startswith( + '.foo at 0x' + )) else: self.assertTrue(ret[1].startswith('')