'tests the stack creation and deletion functionality
* creates a new stack
* verifies the stack appears in the stacks table in Create Complete
state
* deletes the newly created stack
* verifies the stack does not appear in the table after deletion'

@decorators.skip_because(bugs=['1584057'])
@decorators.services_required('heat')
def test_create_delete_stack(self):

    with open(self.STACK_TEMPLATE_PATH, 'r') as f:
        template = f.read()
    input_template = template.format(self.KEYPAIR_NAME, self.CONFIG.image.images_list[0], 'public')
    stacks_page = self.home_pg.go_to_orchestration_stackspage()
    stacks_page.create_stack(self.STACKS_NAME, input_template)
    self.assertTrue(stacks_page.find_message_and_dismiss(messages.INFO))
    self.assertFalse(stacks_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(stacks_page.is_stack_present(self.STACKS_NAME))
    self.assertTrue(stacks_page.is_stack_create_complete(self.STACKS_NAME))
    stacks_page.delete_stack(self.STACKS_NAME)
    self.assertTrue(stacks_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(stacks_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(stacks_page.is_stack_deleted(self.STACKS_NAME))
