diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-01-15 13:51:13 +0100 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2016-01-25 15:55:53 +0100 |
commit | cb6b0c4855885c03d056acb8f98c96de986e081e (patch) | |
tree | d622bc6e4e2ef9e4b4fcb46b8b70e80f6b0b17af /tests/python | |
parent | 0d2d97f9bf6802f6f81090eca6e135e50fea7883 (diff) | |
download | pki-cb6b0c4855885c03d056acb8f98c96de986e081e.tar.gz pki-cb6b0c4855885c03d056acb8f98c96de986e081e.tar.xz pki-cb6b0c4855885c03d056acb8f98c96de986e081e.zip |
Fix flake8 / PEP 8 violations
https://fedorahosted.org/pki/ticket/1738
Diffstat (limited to 'tests/python')
-rw-r--r-- | tests/python/test_authority.py | 5 | ||||
-rw-r--r-- | tests/python/test_pki.py | 2 |
2 files changed, 2 insertions, 5 deletions
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') |