'tests the host aggregate creation and deletion functionalities:
* creates a new host aggregate
* verifies the host aggregate appears in the host aggregates table
* deletes the newly created host aggregate
* verifies the host aggregate does not appear in the table
* after deletion'

def test_host_aggregate_create(self):

    hostaggregates_page = self.home_pg.go_to_system_hostaggregatespage()
    hostaggregates_page.create_host_aggregate(name=self.HOST_AGGREGATE_NAME, availability_zone=self.HOST_AGGREGATE_AVAILABILITY_ZONE)
    self.assertTrue(hostaggregates_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(hostaggregates_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(hostaggregates_page.is_host_aggregate_present(self.HOST_AGGREGATE_NAME))
    hostaggregates_page.delete_host_aggregate(self.HOST_AGGREGATE_NAME)
    self.assertTrue(hostaggregates_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(hostaggregates_page.find_message_and_dismiss(messages.ERROR))
    self.assertFalse(hostaggregates_page.is_host_aggregate_present(self.HOST_AGGREGATE_NAME))
