]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix order of parms in assertEqual for scheduler ut
authorJames Carey <jecarey@us.ibm.com>
Thu, 6 Aug 2015 05:13:15 +0000 (05:13 +0000)
committerJames Carey <jecarey@us.ibm.com>
Tue, 11 Aug 2015 05:25:24 +0000 (05:25 +0000)
commit8508556da66bbd66c0739d1d0bf9e9cea796e74f
tree0212777788c74261ab08efc51e0021d8737efeeb
parente3c7c263e3c4a37ce3842befcaf7e4ae806ac884
Fix order of parms in assertEqual for scheduler ut

When assertEqual is used it should be assertEqual(expected, observed).
Constant values are always the expected.  This patch makes them the
first parameter and fixes some other non-constant cases.

Closes-Bug: #1482373
Change-Id: Iec771d35d1005434281f9efd8bed8d53134abc7f
cinder/tests/unit/scheduler/test_capacity_weigher.py
cinder/tests/unit/scheduler/test_filter_scheduler.py
cinder/tests/unit/scheduler/test_host_manager.py
cinder/tests/unit/scheduler/test_volume_number_weigher.py