'Test swift basic ops.
* get swift stat.
* create container.
* upload a file to the created container.
* list container\'s objects and assure that the uploaded file is
present.
* download the object and check the content
* delete object from container.
* list container\'s objects and assure that the deleted file is gone.
* delete a container.'

@decorators.idempotent_id('b920faf1-7b8a-4657-b9fe-9c4512bfb381')
@test.services('object_storage')
def test_swift_basic_ops(self):

    self.get_swift_stat()
    container_name = self.create_container()
    (obj_name, obj_data) = self.upload_object_to_container(container_name)
    self.list_and_check_container_objects(container_name, present_obj=[obj_name])
    self.download_and_verify(container_name, obj_name, obj_data)
    self.delete_object(container_name, obj_name)
    self.list_and_check_container_objects(container_name, not_present_obj=[obj_name])
    self.delete_container(container_name)
