コード例 #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'])
コード例 #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'])
コード例 #3
0
def test_bad_folder():
    nt.assert_raises(IOError, next,
                     read_document_folder("Frank", content_field='theTank'))
コード例 #4
0
def test_bad_folder():
    nt.assert_raises(IOError, next, read_document_folder("Frank",
                                                         content_field='theTank'))