'Setup: create volume'

def setUp(self):

    super(TestVolumeSnapshotsAdvanced, self).setUp()
    volumes_page = self.home_pg.go_to_compute_volumes_volumespage()
    volumes_page.create_volume(self.VOLUME_NAME)
    volumes_page.find_message_and_dismiss(messages.INFO)
    self.assertTrue(volumes_page.is_volume_status(self.VOLUME_NAME, 'Available'))
    def cleanup():
        volumes_snapshot_page = self.home_pg.go_to_compute_volumes_volumesnapshotspage()
        volumes_page = volumes_snapshot_page.switch_to_volumes_tab()
        volumes_page.delete_volume(self.VOLUME_NAME)
        self.assertTrue(volumes_page.find_message_and_dismiss(messages.SUCCESS))
        self.assertFalse(volumes_page.find_message_and_dismiss(messages.ERROR))
        self.assertTrue(volumes_page.is_volume_deleted(self.VOLUME_NAME))
    self.addCleanup(cleanup)
