'This test case checks create, delete volume type:
Steps:
1. Login to Horizon Dashboard as admin user
2. Navigate to Admin -> System -> Volumes -> Volume Types page
3. Create new volume type
4. Check that the volume type is in the list
5. Check that no Error messages present
6. Delete the volume type
7. Check that the volume type is absent in the list
8. Check that no Error messages present'

def test_volume_type_create_delete(self):

    volume_types_page = self.home_pg.go_to_system_volumes_volumetypespage()
    volume_types_page.create_volume_type(self.VOLUME_TYPE_NAME)
    self.assertTrue(volume_types_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(volume_types_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(volume_types_page.is_volume_type_present(self.VOLUME_TYPE_NAME))
    volume_types_page.delete_volume_type(self.VOLUME_TYPE_NAME)
    self.assertTrue(volume_types_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(volume_types_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(volume_types_page.is_volume_type_deleted(self.VOLUME_TYPE_NAME))
