@classmethod
def make_fresh_workbook(cls, es_app):
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST'}
    testapp = webtest.TestApp(es_app, environ)
    load_res = load_all(testapp, pkg_resources.resource_filename('encoded', 'tests/data/workbook-inserts/'), [])
    if isinstance(load_res, Exception):
        raise load_res
    elif load_res:
        raise RuntimeError('load_all returned a true value that was not an exception.')
    testapp.post_json('/index', {})
    return True
@classmethod
def make_fresh_workbook(cls, es_app):
    environ = {'HTTP_ACCEPT': 'application/json', 'REMOTE_USER': 'TEST'}
    testapp = webtest.TestApp(es_app, environ)
    load_res = load_all(testapp, pkg_resources.resource_filename('encoded', 'tests/data/workbook-inserts/'), [])
    if isinstance(load_res, Exception):
        raise load_res
    elif load_res:
        raise RuntimeError('load_all returned a true value that was not an exception.')
    testapp.post_json('/index', {})
    return True