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'])
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'])
def test_bad_folder(): nt.assert_raises(IOError, next, read_document_folder("Frank", content_field='theTank'))