summaryrefslogtreecommitdiffstats
path: root/tests/test_ssl.py
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2013-05-24 11:36:44 -0500
committerDolph Mathews <dolph.mathews@gmail.com>2013-05-24 13:29:58 -0500
commitaf4e96986f6ee45e9e4ccac0b143902362a1a676 (patch)
tree0252ac8e716b8823bd9cb09e0014e5c36683a8ae /tests/test_ssl.py
parentb85dec3175c85cc64c4dd1661e6399a6ec706d21 (diff)
downloadkeystone-af4e96986f6ee45e9e4ccac0b143902362a1a676.tar.gz
keystone-af4e96986f6ee45e9e4ccac0b143902362a1a676.tar.xz
keystone-af4e96986f6ee45e9e4ccac0b143902362a1a676.zip
Cleanup docstrings (flake8 H401, H402, H403, H404)
- docstring should not start with a space (flake8 H401) - one line docstring needs punctuation (flake8 H402) - multi line docstring end on new line (flake8 H403) - multi line docstring should start with a summary (flake8 H404) Change-Id: I69b414395930bda739aa01b785ac619fa8bb7d9b
Diffstat (limited to 'tests/test_ssl.py')
-rw-r--r--tests/test_ssl.py22
1 files changed, 8 insertions, 14 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 1fd66091..da9e4c06 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -39,9 +39,7 @@ class SSLTestCase(test.TestCase):
self.load_backends()
def test_1way_ssl_ok(self):
- """
- Make sure both public and admin API work with 1-way SSL.
- """
+ """Make sure both public and admin API work with 1-way SSL."""
self.public_server = self.serveapp('keystone', name='main',
cert=CERT, key=KEY, ca=CA)
self.admin_server = self.serveapp('keystone', name='admin',
@@ -58,9 +56,9 @@ class SSLTestCase(test.TestCase):
self.assertEqual(resp.status, 300)
def test_2way_ssl_ok(self):
- """
- Make sure both public and admin API work with 2-way SSL. Requires
- client certificate.
+ """Make sure both public and admin API work with 2-way SSL.
+
+ Requires client certificate.
"""
self.public_server = self.serveapp(
'keystone', name='main', cert=CERT,
@@ -82,9 +80,7 @@ class SSLTestCase(test.TestCase):
self.assertEqual(resp.status, 300)
def test_1way_ssl_with_ipv6_ok(self):
- """
- Make sure both public and admin API work with 1-way ipv6 & SSL.
- """
+ """Make sure both public and admin API work with 1-way ipv6 & SSL."""
self.skip_if_no_ipv6()
self.public_server = self.serveapp('keystone', name='main',
cert=CERT, key=KEY, ca=CA,
@@ -104,8 +100,8 @@ class SSLTestCase(test.TestCase):
self.assertEqual(resp.status, 300)
def test_2way_ssl_with_ipv6_ok(self):
- """
- Make sure both public and admin API work with 2-way ipv6 & SSL.
+ """Make sure both public and admin API work with 2-way ipv6 & SSL.
+
Requires client certificate.
"""
self.skip_if_no_ipv6()
@@ -131,9 +127,7 @@ class SSLTestCase(test.TestCase):
self.assertEqual(resp.status, 300)
def test_2way_ssl_fail(self):
- """
- Expect to fail when client does not present proper certificate.
- """
+ """Expect to fail when client does not present proper certificate."""
self.public_server = self.serveapp(
'keystone', name='main', cert=CERT,
key=KEY, ca=CA, cert_required=True)