def METHOD_NAME(api):
    responses.add(responses.GET, URL_STATUS, json={'status': 'ERROR',
                                                   'chunks_available': []
                                                   })
    iterator = ExportsIterator(api,
                               type='assets',
                               uuid='01234567-89ab-cdef-0123-4567890abcde',
                               _term_on_error=True
                               )
    with pytest.raises(TioExportsError):
        iterator.next()