]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use mock for scheduler tests
authorAvishay Traeger <avishay@il.ibm.com>
Tue, 10 Dec 2013 08:43:07 +0000 (10:43 +0200)
committerAvishay Traeger <avishay@il.ibm.com>
Thu, 12 Dec 2013 07:50:23 +0000 (09:50 +0200)
commit051aa362ff1f52926b1725ab24b3b21bfb5e5e21
tree2ebe968319468d2cd6e26b85e3983c057343701c
parent1e14e6a42c8eb9df5ee2da11da66f8ec9da8e84d
Use mock for scheduler tests

In our effort to move from mox to mock, this patch will convert the
scheduler unit tests to use mock exclusively.  Also fixed some pylint
errors along the way.

Change-Id: If5a94838981a04a38c2797ced07f23abfafbedb7
cinder/tests/scheduler/fakes.py
cinder/tests/scheduler/test_capacity_weigher.py
cinder/tests/scheduler/test_chance_weigher.py
cinder/tests/scheduler/test_filter_scheduler.py
cinder/tests/scheduler/test_host_filters.py
cinder/tests/scheduler/test_host_manager.py
cinder/tests/scheduler/test_rpcapi.py
cinder/tests/scheduler/test_scheduler.py