diff --git a/fuelweb_test/tests/test_ha_one_controller.py b/fuelweb_test/tests/test_ha_one_controller.py index 3c3e79cbc..56b9011ba 100644 --- a/fuelweb_test/tests/test_ha_one_controller.py +++ b/fuelweb_test/tests/test_ha_one_controller.py @@ -676,10 +676,7 @@ class NodeDiskSizes(TestBasic): for disk in node['meta']['disks']: assert_equal(disk['size'], disk_size, 'Disk size') - # pylint: disable=round-builtin - hdd_size = "{} TB HDD".format( - round(((disk_size * 3 / (10 ** 9)) / 1000), 3)) - # pylint: enable=round-builtin + hdd_size = "{} TB HDD".format((disk_size * 3 / (10 ** 9)) / 1000) notifications = self.fuel_web.client.get_notifications() for node in nailgun_nodes: # assert /api/notifications @@ -688,25 +685,13 @@ class NodeDiskSizes(TestBasic): current_node = notification['node_id'] == node['id'] if current_node and discover and \ "discovered" in notification['message']: - assert_true( - hdd_size in notification['message'], - '"{size}" not found in notification message ' - '"{note}" for node {node} (hostname {host})!'.format( - size=hdd_size, - note=notification['message'], - node=node['name'], - host=node['hostname'] - ) - ) + assert_true(hdd_size in notification['message']) # assert disks disks = self.fuel_web.client.get_node_disks(node['id']) for disk in disks: - assert_equal( - disk['size'], NODE_VOLUME_SIZE * 1024 - 500, - 'Disk size {0} is not equals expected {1}'.format( - disk['size'], NODE_VOLUME_SIZE * 1024 - 500 - )) + assert_equal(disk['size'], + NODE_VOLUME_SIZE * 1024 - 500, 'Disk size') @test(depends_on=[NodeMultipleInterfaces.deploy_node_multiple_interfaces], groups=["check_nodes_disks"])