summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSergey Lukjanov <slukjanov@mirantis.com>2013-05-30 08:32:42 +0400
committerSergey Lukjanov <slukjanov@mirantis.com>2013-05-30 09:00:57 +0400
commit484a1df32d5854312ef31c5b488fc07fff8428c4 (patch)
treee8ac54c6ab7f1aeac8ca23522683d6ebc5b3ec14 /tests
parent35660dac73f9f7428f9c441583464b5942ca6827 (diff)
downloadoslo-484a1df32d5854312ef31c5b488fc07fff8428c4.tar.gz
oslo-484a1df32d5854312ef31c5b488fc07fff8428c4.tar.xz
oslo-484a1df32d5854312ef31c5b488fc07fff8428c4.zip
Enable hacking H403 test
H403 multi line docstring end on new line Change-Id: I33249651026b54ef346214965e909835288bb14e
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/rpc/test_kombu.py3
-rw-r--r--tests/unit/scheduler/fake_hosts.py10
-rw-r--r--tests/unit/test_log.py3
-rw-r--r--tests/unit/test_notifier.py3
4 files changed, 12 insertions, 7 deletions
diff --git a/tests/unit/rpc/test_kombu.py b/tests/unit/rpc/test_kombu.py
index ebc29ea..a524c73 100644
--- a/tests/unit/rpc/test_kombu.py
+++ b/tests/unit/rpc/test_kombu.py
@@ -114,7 +114,8 @@ class RpcKombuTestCase(amqp.BaseRpcAMQPTestCase):
def test_message_ttl_on_timeout(self):
"""Test message ttl being set by request timeout. The message
- should die on the vine and never arrive."""
+ should die on the vine and never arrive.
+ """
conn = self.rpc.create_connection(FLAGS)
message = 'topic test message'
diff --git a/tests/unit/scheduler/fake_hosts.py b/tests/unit/scheduler/fake_hosts.py
index 248eb3d..b02aca4 100644
--- a/tests/unit/scheduler/fake_hosts.py
+++ b/tests/unit/scheduler/fake_hosts.py
@@ -18,10 +18,12 @@ Fakes For filters tests.
class FakeHostManager(object):
- """host1: free_ram_mb=1024-512-512=0, free_disk_gb=1024-512-512=0
- host2: free_ram_mb=2048-512=1536 free_disk_gb=2048-512=1536
- host3: free_ram_mb=4096-1024=3072 free_disk_gb=4096-1024=3072
- host4: free_ram_mb=8192 free_disk_gb=8192"""
+ """
+ host1: free_ram_mb=1024-512-512=0, free_disk_gb=1024-512-512=0
+ host2: free_ram_mb=2048-512=1536 free_disk_gb=2048-512=1536
+ host3: free_ram_mb=4096-1024=3072 free_disk_gb=4096-1024=3072
+ host4: free_ram_mb=8192 free_disk_gb=8192
+ """
def __init__(self):
self.service_states = {
diff --git a/tests/unit/test_log.py b/tests/unit/test_log.py
index 301e3a8..f87a1da 100644
--- a/tests/unit/test_log.py
+++ b/tests/unit/test_log.py
@@ -267,7 +267,8 @@ class ExceptionLoggingTestCase(test_utils.BaseTestCase):
class FancyRecordTestCase(test_utils.BaseTestCase):
"""Test how we handle fancy record keys that are not in the
- base python logging"""
+ base python logging.
+ """
def setUp(self):
super(FancyRecordTestCase, self).setUp()
diff --git a/tests/unit/test_notifier.py b/tests/unit/test_notifier.py
index 90d811f..b762d5e 100644
--- a/tests/unit/test_notifier.py
+++ b/tests/unit/test_notifier.py
@@ -54,7 +54,8 @@ class NotifierTestCase(test_utils.BaseTestCase):
def test_verify_message_format(self):
"""A test to ensure changing the message format is prohibitively
- annoying"""
+ annoying.
+ """
def message_assert(context, message):
fields = [('publisher_id', 'publisher_id'),