]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix "rtsllib" -> "rtslib" typos
authorEric Harney <eharney@redhat.com>
Fri, 6 Mar 2015 17:27:27 +0000 (12:27 -0500)
committerEric Harney <eharney@redhat.com>
Fri, 6 Mar 2015 17:31:09 +0000 (12:31 -0500)
The correct name is "rtslib", fix up test
names.

Change-Id: I774d408f0b2493626b22e9b429c561252dd7750c

cinder/tests/test_cmd.py

index b0abc57f45d52e7564c498b5c4424a0d597d5a24..92b480ec7c672a1b7f1fdf05107fd7fdc3ac6482 100644 (file)
@@ -695,7 +695,7 @@ class TestCinderRtstoolCmd(test.TestCase):
         super(TestCinderRtstoolCmd, self).tearDown()
 
     @mock.patch('rtslib.root.RTSRoot')
-    def test_create_rtsllib_error(self, rtsroot):
+    def test_create_rtslib_error(self, rtsroot):
         rtsroot.side_effect = rtslib.utils.RTSLibError()
 
         self.assertRaises(rtslib.utils.RTSLibError, cinder_rtstool.create,
@@ -705,7 +705,7 @@ class TestCinderRtstoolCmd(test.TestCase):
                           mock.sentinel.password,
                           mock.sentinel.iser_enabled)
 
-    def _test_create_rtsllib_error_network_portal(self, ip):
+    def _test_create_rtslib_error_network_portal(self, ip):
         with contextlib.nested(
             mock.patch('rtslib.NetworkPortal'),
             mock.patch('rtslib.LUN'),
@@ -759,11 +759,11 @@ class TestCinderRtstoolCmd(test.TestCase):
             if ip == '::0':
                 network_portal.assert_any_call(tpg_new, ip, 3260, mode='any')
 
-    def test_create_rtsllib_error_network_portal_ipv4(self):
-        self._test_create_rtsllib_error_network_portal('0.0.0.0')
+    def test_create_rtslib_error_network_portal_ipv4(self):
+        self._test_create_rtslib_error_network_portal('0.0.0.0')
 
-    def test_create_rtsllib_error_network_portal_ipv6(self):
-        self._test_create_rtsllib_error_network_portal('::0')
+    def test_create_rtslib_error_network_portal_ipv6(self):
+        self._test_create_rtslib_error_network_portal('::0')
 
     def _test_create(self, ip):
         with contextlib.nested(