lingpy.tests.basic package

Submodules

lingpy.tests.basic.test_ops module

Test wordlist module.

class lingpy.tests.basic.test_ops.TestOps(methodName='runTest')

Bases: clldutils.testing.WithTempDir

setUp()
test_calculate_data()
test_clean_taxnames()
test_coverage()
test_iter_rows()
test_renumber()
test_tsv2triple()
test_wl2dict()
test_wl2dst()
test_wl2multistate()
test_wl2qlc()

lingpy.tests.basic.test_parser module

class lingpy.tests.basic.test_parser.TestParser(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_add_entries()
test_cache()
test_get_entries()
test_getattr()
test_getitem()
test_init()
test_len()

lingpy.tests.basic.test_tree module

class lingpy.tests.basic.test_tree.TestTree(methodName='runTest')

Bases: unittest.case.TestCase

setUp()
test_getDistanceToRoot()
test_get_LCA()
test_get_distance()
test_get_distance_unknown()

test failure with unknown distance

test_init_from_file()
test_init_from_list()
lingpy.tests.basic.test_tree.test_random_tree()
lingpy.tests.basic.test_tree.test_star_tree()

lingpy.tests.basic.test_wordlist module

Test wordlist module.

class lingpy.tests.basic.test_wordlist.TestWordlist(methodName='runTest')

Bases: clldutils.testing.WithTempDir

setUp()
test___len__()
test_calculate()
test_coverage()
test_export()
test_get_dict()
test_get_entries()
test_get_etymdict()
test_get_list()
test_get_paps()
test_get_wordlist()
test_output()
test_renumber()

Module contents