From: Jenkins Date: Sun, 6 Sep 2015 17:47:23 +0000 (+0000) Subject: Merge "Correct usage of assertEqual for boolean values" X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c25c61dba10a9aa226879d4e202f1f7cebf3c8b8;p=openstack-build%2Fcinder-build.git Merge "Correct usage of assertEqual for boolean values" --- c25c61dba10a9aa226879d4e202f1f7cebf3c8b8 diff --cc cinder/tests/unit/test_hplefthand.py index 505c162ba,1e9998ca1..3a72f210d --- a/cinder/tests/unit/test_hplefthand.py +++ b/cinder/tests/unit/test_hplefthand.py @@@ -2071,10 -2053,9 +2071,10 @@@ class TestHPLeftHandRESTISCSIDriver(HPL self.assertEqual(GOODNESS_FUNCTION, stats['goodness_function']) self.assertEqual(FILTER_FUNCTION, stats['filter_function']) self.assertEqual(1, int(stats['total_volumes'])) - self.assertEqual(True, stats['thin_provisioning_support']) - self.assertEqual(True, stats['thick_provisioning_support']) + self.assertTrue(stats['thin_provisioning_support']) + self.assertTrue(stats['thick_provisioning_support']) self.assertEqual(1, int(stats['provisioned_capacity_gb'])) + self.assertEqual(25, int(stats['reserved_percentage'])) cap_util = ( float(units.Gi * 500 - units.Gi * 250) / float(units.Gi * 500)