]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix docstring ordering
authorEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 3 Mar 2014 10:20:20 +0000 (10:20 +0000)
committerEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 3 Mar 2014 10:20:20 +0000 (10:20 +0000)
Change-Id: I24e377c13ef7342329ab91925c766c05d5612b5f
Closes-Bug: bug 1287107

cinder/tests/test_backup_ceph.py

index 52816727d898d4d1e78ed46cd8ab45493d98694b..54008d1487e93f872661917ae6f5144b97c3f1f2 100644 (file)
@@ -68,11 +68,11 @@ def common_mocks(f):
         #                ensure that any test ending up in a subprocess fails
         #                if not properly mocked.
         @mock.patch('subprocess.Popen', spec=True)
-        # NOTE(dosaboy): set spec to empty object so that hasattr calls return
-        #                False by default.
+        # NOTE(dosaboy): mock out eventlet.sleep() so that it does nothing.
         @mock.patch('eventlet.sleep', spec=True)
         @mock.patch('time.time', spec=True)
-        # NOTE(dosaboy): mock out eventlet.sleep() so that it does nothing.
+        # NOTE(dosaboy): set spec to empty object so that hasattr calls return
+        #                False by default.
         @mock.patch('cinder.backup.drivers.ceph.rbd', spec=object)
         @mock.patch('cinder.backup.drivers.ceph.rados', spec=object)
         def _common_inner_inner2(mock_rados, mock_rbd, mock_time, mock_sleep,