'Create and return a DjangoStorageReportStore configured to use S3 for
storage.'

def create_report_store(self):

    test_settings = copy.deepcopy(settings.GRADES_DOWNLOAD)
    test_settings['STORAGE_CLASS'] = 'openedx.core.storage.S3ReportStorage'
    test_settings['STORAGE_KWARGS'] = {'bucket': settings.GRADES_DOWNLOAD['BUCKET'], 'location': settings.GRADES_DOWNLOAD['ROOT_PATH']}
    with override_settings(GRADES_DOWNLOAD=test_settings):
        connection = boto.connect_s3()
        connection.create_bucket(settings.GRADES_DOWNLOAD['STORAGE_KWARGS']['bucket'])
        return ReportStore.from_config(config_name='GRADES_DOWNLOAD')
