]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
test_volume unittest fails if ran only this module
authorPranali Deore <pranali.deore@nttdata.com>
Mon, 17 Feb 2014 09:35:34 +0000 (01:35 -0800)
committerPranali Deore <pranali.deore@nttdata.com>
Mon, 17 Feb 2014 09:53:42 +0000 (01:53 -0800)
commitc1853677d4637edb3c341589fad6aed0d5f71a3d
tree3657c2177b7ec501750d8f7255b8f2485b65e426
parent37eb101b1c91c2219d83b78df28d39dc71f7323b
test_volume unittest fails if ran only this module

Using stevedore ExtensionManager to load entry_points(extensions)
before running any test case.

In BaseVolumeTestCase we have stubbed 'os.path.exists' call,
because of this stevedore is not able to load entry points paroperly.
Stevedore internally use pkg_resources and pkg_resources use
'os.path.exists' to check if entry_points.txt file exists or not.
Because of stubbibg it is returning True even if file do not exists.

Change-Id: I4fd6bee2e9f33c45ad3deacfe7359dc56171205e
Closes-Bug: #1263175
cinder/tests/test_volume.py