]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Clean up comparison assertions
authorZhongyue Luo <zhongyue.nah@intel.com>
Tue, 3 Sep 2013 05:07:21 +0000 (13:07 +0800)
committerGerrit Code Review <review@openstack.org>
Wed, 9 Oct 2013 02:30:10 +0000 (02:30 +0000)
commitd1c32766ae7e7ab4c07e805b4a01c0af263ce5b1
treeebf87877bce227f3d3c3967088a24823b65eaf1e
parentb00e307d7067e4b9cc86739291668be5b518badf
Clean up comparison assertions

Using assertTrue and the comparison operators to test
if an element is greater, equal, or less is too python2.4.
Our unit testing framework 'testtools' supports
- assertEqual
- and testtools Matcher classes
which were created for these types of tests.

Re-implemented assertGreater and assertGreaterEqual
with compatibility for python < 2.7.

Change-Id: I6f3e3279630393e594c75d30cb4b895c2e2c22ca
cinder/test.py
cinder/tests/api/test_extensions.py
cinder/tests/brick/test_brick_connector.py
cinder/tests/test_backup.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_gpfs.py
cinder/tests/test_hds.py
cinder/tests/test_hp3par.py
cinder/tests/test_migrations.py