]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Utilizes assertIsNotNone
authorZhongyue Luo <zhongyue.nah@intel.com>
Fri, 6 Sep 2013 04:01:26 +0000 (12:01 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Fri, 6 Sep 2013 04:02:43 +0000 (12:02 +0800)
commitc960500ecd25a89a4286034f7d0e71353f85ac1e
tree40dde8637759de41e404dd82bc6fdad6269cd8e2
parentfcb68592d2d6fae79d749793dc5e38915134604b
Utilizes assertIsNotNone

Using assertTrue and the 'is not' operator to test if an element
is not None is too python2.4. Our unit testing framework supports
assertIsNotNone, included from python 2.7, which was created
for these types of tests.

Change-Id: I25c3f2b144357a3f86625deb8e324d78c20b9ce4
cinder/tests/scheduler/test_filter_scheduler.py
cinder/tests/test_hp3par.py