'exports and extracts in static/uploads/test_event_import'

def _create_set(self, event_id=1, config=None):

    if (config is None):
        config = {'image': True}
    resp = self._do_successful_export(event_id, config)
    zip_file = StringIO()
    zip_file.write(resp.data)
    path = 'static/uploads/test_event_import'
    if os.path.isdir(path):
        shutil.rmtree(path, ignore_errors=True)
    with zipfile.ZipFile(zip_file) as z:
        z.extractall(path)
