summaryrefslogtreecommitdiffstats
path: root/tests/python
diff options
context:
space:
mode:
Diffstat (limited to 'tests/python')
-rw-r--r--tests/python/test_authority.py5
-rw-r--r--tests/python/test_pki.py2
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')