From cb6b0c4855885c03d056acb8f98c96de986e081e Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 15 Jan 2016 13:51:13 +0100 Subject: Fix flake8 / PEP 8 violations https://fedorahosted.org/pki/ticket/1738 --- tests/python/test_authority.py | 5 +---- tests/python/test_pki.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/python') diff --git a/tests/python/test_authority.py b/tests/python/test_authority.py index f48b9deb9..b25816c23 100644 --- a/tests/python/test_authority.py +++ b/tests/python/test_authority.py @@ -20,7 +20,6 @@ # import mock -import requests import unittest import uuid @@ -38,7 +37,7 @@ class AuthorityTests(unittest.TestCase): self.authority_client = authority.AuthorityClient(self.connection) self.top_level_aid = str(uuid.uuid4()) self.aid = str(uuid.uuid4()) - self.aid2 = str(uuid.uuid4()) + self.aid2 = str(uuid.uuid4()) self.dn = "cn=subordinate ca, o=example.com" self.dn2 = "cn=subordinate ca2, o=example.com" self.description = "subordinate CA1" @@ -127,5 +126,3 @@ class AuthorityTests(unittest.TestCase): self.assertEquals(ca.dn, self.dn2) else: self.assertEquals(ca.dn, self.dn) - - diff --git a/tests/python/test_pki.py b/tests/python/test_pki.py index 606a89232..dcab79947 100644 --- a/tests/python/test_pki.py +++ b/tests/python/test_pki.py @@ -33,6 +33,7 @@ class TestHTTPError(requests.exceptions.HTTPError): self.response._content = body self.response.encoding = 'utf-8' + class PKITests(unittest.TestCase): def test_handle_exceptions(self): @@ -78,7 +79,6 @@ class PKITests(unittest.TestCase): 'com.netscape.certsrv.base.BadRequestException' ) - with self.assertRaises(TestHTTPError) as e: raiser(b'no json body') -- cgit