def _testUpload(self, storage, folder):
        
        # upload a file
        name = 's3dummyfile.txt'
        content = ContentFile(self.file_text)
        storage.save(name, content)
        
        if self.VERBOSE:
            print
            print "Write: %s/%s" % (folder, name)
            print self.file_text % "Content: '%s'"
        
        # confirm it was uploaded
        f = storage.open(name, 'r')
        file_text = f.read()
        self.assertEqual(file_text, self.file_text)

        if self.VERBOSE:
            print "Read: %s" % f.key.name
            print >> sys.stdout, "Content: '%s'" % file_text
        
        self.assertEqual(f.key.name, "%s/%s" % (folder, name))
        f.close()
        
        if self.VERBOSE:
            print "cleaning up: deleting file: %s" % f.key.name
        storage.bucket.delete_key(f.key)
        
        # # print >> sys.stdout, os.path.abspath(f)
        # print f.__dict__.keys()
        # print f.name
        # print f.key.__dict__.keys()
        # print "key: %s" % f.key
        # print "path: %s" % f.key.path
        # print "name: %s" % f.key.name
dataset/ETHPy150Open jamstooks/django-s3-folder-storage/s3_folder_storage/tests/testS3.py/ConfigurationTest._testUpload/swapped operands of `%`