'tests the instance creation and deletion functionality:
* creates a new instance in Project > Compute > Instances page
* verifies the instance appears in the instances table as active
* deletes the newly created instance via proper page (depends on user)
* verifies the instance does not appear in the table after deletion'

def test_create_delete_instance(self):

    instances_page = self.home_pg.go_to_compute_instancespage()
    instances_page.create_instance(self.INSTANCE_NAME)
    self.assertTrue(instances_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(instances_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(instances_page.is_instance_active(self.INSTANCE_NAME))
    instances_page = self.instances_page
    instances_page.delete_instance(self.INSTANCE_NAME)
    self.assertTrue(instances_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(instances_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(instances_page.is_instance_deleted(self.INSTANCE_NAME))
