Add assert_calls check testing volume calls with timeout enabled

Change-Id: I4203f0de012b3d84ece3ba7749568f39c92dcfeb
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
This commit is contained in:
Rosario Di Somma 2017-05-06 16:04:05 +00:00
parent 4b75c85e18
commit b39045069f
2 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,7 @@ class TestCreateVolumeSnapshot(base.RequestsMockTestCase):
exc.OpenStackCloudTimeout,
self.cloud.create_volume_snapshot, volume_id=volume_id,
wait=True, timeout=0.01)
self.assert_calls(do_count=False)
def test_create_volume_snapshot_with_error(self):
"""

View File

@ -98,3 +98,4 @@ class TestDeleteVolumeSnapshot(base.RequestsMockTestCase):
exc.OpenStackCloudTimeout,
self.cloud.delete_volume_snapshot, name_or_id='1234',
wait=True, timeout=0.01)
self.assert_calls(do_count=False)