]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Convert test_image_utils tests to mock
authorgit-harry <git-harry@live.co.uk>
Tue, 9 Dec 2014 10:09:17 +0000 (10:09 +0000)
committergit-harry <git-harry@live.co.uk>
Thu, 11 Dec 2014 11:46:54 +0000 (11:46 +0000)
commitf3809dec5a359dc293f9a0098d7c34d083a124a4
tree94007a6f9f913a95962bfc0382a94b4993f80fa3
parent297794bfbf3dc73b5667c0b34ab3a4f0e7bf43dd
Convert test_image_utils tests to mock

The tests for cinder/image/image_utils.py mainly use mox. This patch
replaces the tests in cinder/tests/test_image_utils.py and adds
additional tests that use mock.

This commit removes the following trivial functions that were only used
once within image_utils and don't appear to provide any tangible
benefit:
    - file_exist
    - rename_file

Change-Id: If6c6e7370ac253f332ed532c0ca3956624267442
cinder/image/image_utils.py
cinder/tests/test_image_utils.py