def cf_upload_file(self):
        self.logit("Uploading a Cloud Files object...")
        cont = self.smoke_cont
        text = utils.random_ascii(1024)
        obj = cont.store_object("SMOKETEST_OBJECT", text)
        # Make sure it is deleted before the container
        self.cleanup_items.insert(0, obj)
        all_objs = cont.get_object_names()
        if obj.name in all_objs:
            self.logit("Success!")
        else:
            self.logit("FAIL!")
            self.failures.append("UPLOAD FILE")
dataset/ETHPy150Open rackspace/pyrax/tests/integrated/smoketest.py/SmokeTester.cf_upload_file/original