summaryrefslogtreecommitdiff
path: root/nova/tests/unit/test_block_device.py
diff options
context:
space:
mode:
authorAyush Garg <ayush.garg@nectechnologies.in>2016-01-09 23:41:18 +0530
committerAyush Garg <ayush.garg@nectechnologies.in>2016-01-11 17:02:11 +0530
commit5b292312223b3bda5e99eeafd0315974be437fb0 (patch)
tree3ee19ca87cb214c8bccfd126838d66b309b6e49d /nova/tests/unit/test_block_device.py
parentf1da349a4fea7d0dc178dcb4b11d922aefd5b8de (diff)
downloadnova-5b292312223b3bda5e99eeafd0315974be437fb0.tar.gz
Change assertEqual(True/False) to assertTrue/False
assertEqual(True/False, ***) should be changed to a meaningful format of assertTrue/False(***) in test files. Change-Id: I0b6d4fc088030d953bea7c69880f9aab170ca5cc
Diffstat (limited to 'nova/tests/unit/test_block_device.py')
-rw-r--r--nova/tests/unit/test_block_device.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/unit/test_block_device.py b/nova/tests/unit/test_block_device.py
index 354d1ae6ee..5fe72f7553 100644
--- a/nova/tests/unit/test_block_device.py
+++ b/nova/tests/unit/test_block_device.py
@@ -435,7 +435,7 @@ class TestBlockDeviceDict(test.NoDBTestCase):
'volume_id': 'fake-volume-id-1',
'boot_index': 0}
bdm_dict = block_device.BlockDeviceDict(bdm)
- self.assertEqual(False, bdm_dict['delete_on_termination'])
+ self.assertFalse(bdm_dict['delete_on_termination'])
def test_validate(self):
self.assertRaises(exception.InvalidBDMFormat,
@@ -477,7 +477,7 @@ class TestBlockDeviceDict(test.NoDBTestCase):
truthy_bdm = dict(self.new_mapping[2])
truthy_bdm['delete_on_termination'] = '1'
truthy_bdm = block_device.BlockDeviceDict(truthy_bdm)
- self.assertEqual(True, truthy_bdm['delete_on_termination'])
+ self.assertTrue(truthy_bdm['delete_on_termination'])
verbose_bdm = dict(self.new_mapping[2])
verbose_bdm['boot_index'] = 'first'