From 0ed57f3feb83941c84aff1032f47b962b50834b3 Mon Sep 17 00:00:00 2001 From: Edward Hope-Morley Date: Mon, 3 Mar 2014 10:20:20 +0000 Subject: [PATCH] Fix docstring ordering Change-Id: I24e377c13ef7342329ab91925c766c05d5612b5f Closes-Bug: bug 1287107 --- cinder/tests/test_backup_ceph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cinder/tests/test_backup_ceph.py b/cinder/tests/test_backup_ceph.py index 52816727d..54008d148 100644 --- a/cinder/tests/test_backup_ceph.py +++ b/cinder/tests/test_backup_ceph.py @@ -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, -- 2.45.2