'Test revert to snapshot'

@decorators.idempotent_id('87b7dcb7-4950-4a3a-802c-ece55491846d')
def test_volume_revert_to_snapshot(self):

    self.volume_revert_client.revert_to_snapshot(self.volume, self.snapshot['id'])
    waiters.wait_for_volume_resource_status(self.volumes_client, self.volume['id'], 'available')
    waiters.wait_for_volume_resource_status(self.snapshots_client, self.snapshot['id'], 'available')
    volume = self.volumes_client.show_volume(self.volume['id'])['volume']
    self.assertEqual(1, volume['size'])
