nltk.test.unit.test_concordance module

nltk.test.unit.test_concordance.stdout_redirect(where)[source]
class nltk.test.unit.test_concordance.TestConcordance[source]

Bases: TestCase

Text constructed using: https://www.nltk.org/book/ch01.html

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

classmethod tearDownClass()[source]

Hook method for deconstructing the class fixture after running all tests in the class.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_concordance_list()[source]
test_concordance_width()[source]
test_concordance_lines()[source]
test_concordance_print()[source]