Fix typos in test_suite.rst and test_utils.py

suceeds => succeeds
Openstack => OpenStack

And remove comments.

Change-Id: I5ef5e294c7928cb0aa62fedb1f4f91c93e325786
This commit is contained in:
Takashi NATSUME 2015-08-26 11:40:59 +09:00
parent d55f1de3bc
commit 5b2bd99a00
2 changed files with 3 additions and 6 deletions

View File

@ -13,7 +13,7 @@ Functional tests
conform to the specs. These include positive and negative tests.
Tempest tests
Tempest tests are integration tests for Openstack [#f1]_.
Tempest tests are integration tests for OpenStack [#f1]_.
Tempest tests for Zaqar are available at https://github.com/openstack/tempest.
This document focuses on the unit and functional tests. Please refer to the

View File

@ -28,19 +28,16 @@ class TestUtils(testing.TestBase):
self.conf.register_opts(configs._GENERAL_OPTIONS)
@testing.requires_mongodb
def test_can_connect_suceeds_if_good_uri_mongo(self):
def test_can_connect_succeeds_if_good_uri_mongo(self):
self.config(unreliable=True)
self.assertTrue(utils.can_connect('mongodb://localhost:27017',
conf=self.conf))
@testing.requires_redis
def test_can_connect_suceeds_if_good_uri_redis(self):
def test_can_connect_succeeds_if_good_uri_redis(self):
self.assertTrue(utils.can_connect('redis://localhost'))
self.assertTrue(utils.can_connect('redis://localhost:6379'))
# def test_can_connect_suceeds_if_good_uri_sqlite(self):
# self.assertTrue(utils.can_connect('sqlite://:memory:'))
def test_can_connect_fails_if_bad_uri_missing_schema(self):
self.assertFalse(utils.can_connect('localhost:27017'))