Fix docstring ordering
Change-Id: I24e377c13ef7342329ab91925c766c05d5612b5f Closes-Bug: bug 1287107
This commit is contained in:
parent
ebf55d5203
commit
0ed57f3feb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue