Exemplo n.º 1
0
def test_read_document_folder():
    documents = read_document_folder(
        '{}/test_data_folder_files'.format(test_data_path),
        content_field="abstract")
    nt.assert_true(
        solution_document_folder == next(iter(documents))['abstract'])
Exemplo n.º 2
0
def test_read_document_folder():
    documents = read_document_folder(
        '{}/test_data_folder_files'.format(test_data_path),
        content_field="abstract")
    nt.assert_true(solution_document_folder == next(iter(documents))['abstract'])
Exemplo n.º 3
0
def test_bad_folder():
    nt.assert_raises(IOError, next,
                     read_document_folder("Frank", content_field='theTank'))
Exemplo n.º 4
0
def test_bad_folder():
    nt.assert_raises(IOError, next, read_document_folder("Frank",
                                                         content_field='theTank'))