summaryrefslogtreecommitdiffstats
path: root/nova/tests/image
diff options
context:
space:
mode:
authorSean Dague <sdague@linux.vnet.ibm.com>2013-01-09 00:07:42 -0500
committerSean Dague <sdague@linux.vnet.ibm.com>2013-01-09 00:17:51 -0500
commit22498d2ac061b911eea6fcccc1621840ad912e7b (patch)
treefb24662c0f0b4df54095fafa113e20ff770d358d /nova/tests/image
parentbf31e02d1333be8fc6809744073146c1915536c2 (diff)
downloadnova-22498d2ac061b911eea6fcccc1621840ad912e7b.tar.gz
nova-22498d2ac061b911eea6fcccc1621840ad912e7b.tar.xz
nova-22498d2ac061b911eea6fcccc1621840ad912e7b.zip
fix N402 for nova/tests
convert docstrings on test_ functions to comments to prevent the function name from being masked by test infrastructure convert the rest of the docstrings to end in punctuation as per N401 Change-Id: Ib400537c6f7feb30739207a627b5aac3a7eb165a
Diffstat (limited to 'nova/tests/image')
-rw-r--r--nova/tests/image/fake.py2
-rw-r--r--nova/tests/image/test_glance.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/image/fake.py b/nova/tests/image/fake.py
index 9070a69d8..78cd667e4 100644
--- a/nova/tests/image/fake.py
+++ b/nova/tests/image/fake.py
@@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""Implementation of a fake image service"""
+"""Implementation of a fake image service."""
import copy
import datetime
diff --git a/nova/tests/image/test_glance.py b/nova/tests/image/test_glance.py
index 943b98cb2..7c13796a6 100644
--- a/nova/tests/image/test_glance.py
+++ b/nova/tests/image/test_glance.py
@@ -35,7 +35,7 @@ CONF = cfg.CONF
class NullWriter(object):
- """Used to test ImageService.get which takes a writer object"""
+ """Used to test ImageService.get which takes a writer object."""
def write(self, *arg, **kwargs):
pass
@@ -134,7 +134,7 @@ class TestGlanceImageService(test.TestCase):
deleted_at=self.NOW_GLANCE_FORMAT)
def test_create_with_instance_id(self):
- """Ensure instance_id is persisted as an image-property"""
+ # Ensure instance_id is persisted as an image-property.
fixture = {'name': 'test image',
'is_public': False,
'properties': {'instance_id': '42', 'user_id': 'fake'}}