Fix doc-strings warnings and errors

Fixing doc-string warnings in preparation for
this patch [0] to merge and allow the gate
to show problems in doc-strings.

[0]: https://review.openstack.org/#/c/229951

Closes-Bug: #1565005
Change-Id: I1d1eb214026a963f7ebe5ccf60fa1ae31f54c579
This commit is contained in:
Tom Cocozzello 2016-04-01 13:20:18 -05:00 committed by Tom Cocozzello (tjcocozz)
parent b9de463ee8
commit ff675437f3
3 changed files with 17 additions and 16 deletions

View File

@ -163,9 +163,9 @@ class StoreLocations(collections.MutableSequence):
"""
The proxy for store location property. It takes responsibility for::
1. Location uri correctness checking when adding a new location.
2. Remove the image data from the store when a location is removed
from an image.
1. Location uri correctness checking when adding a new location.
2. Remove the image data from the store when a location is removed
from an image.
"""
def __init__(self, image_proxy, value):

View File

@ -610,18 +610,18 @@ class TestApi(functional.FunctionalTest):
"""
We test the following sequential series of actions::
0. POST /images with public image named Image1
and no custom properties
- Verify 201 returned
1. HEAD image
- Verify HTTP headers have correct information we just added
2. GET image
- Verify all information on image we just added is correct
3. DELETE image1
- Delete the newly added image
4. GET image
- Verify that 403 HTTPForbidden exception is raised prior to
404 HTTPNotFound
0. POST /images with public image named Image1
and no custom properties
- Verify 201 returned
1. HEAD image
- Verify HTTP headers have correct information we just added
2. GET image
- Verify all information on image we just added is correct
3. DELETE image1
- Delete the newly added image
4. GET image
- Verify that 403 HTTPForbidden exception is raised prior to
404 HTTPNotFound
"""
self.cleanup()

View File

@ -141,7 +141,8 @@ class TestArtifactsLoader(utils.BaseTestCase):
* no plugins can be loaded if load_enabled = False
* if available_plugins list is given only plugins specified can be
be loaded
be loaded
"""
self.config(load_enabled=False)
self.assertRaises(exception.ArtifactLoadError,