lingpy.tests.convert package

Submodules

lingpy.tests.convert.test_cldf module

class lingpy.tests.convert.test_cldf.Tests(methodName='runTest')

Bases: unittest.case.TestCase

test_from_cldf()

lingpy.tests.convert.test_cldf_methods module

class lingpy.tests.convert.test_cldf_methods.CLDFWordlistWriteTest(methodName='runTest')

Bases: lingpy.tests.util_testing.WithTempDir

test_load_cldf_and_write()
class lingpy.tests.convert.test_cldf_methods.FailTests(methodName='runTest')

Bases: unittest.case.TestCase

test_load_noexisting_cldf(**kw)
test_load_non_wordlist_cldf(**kw)
class lingpy.tests.convert.test_cldf_methods.Tests(methodName='runTest')

Bases: unittest.case.TestCase

test_load_from_cldf_metadata()
test_load_from_cldf_metadatafree()

lingpy.tests.convert.test_graph module

class lingpy.tests.convert.test_graph.Tests(methodName='runTest')

Bases: unittest.case.TestCase

test_igraph2networkx()
test_networkx2igraph()

lingpy.tests.convert.test_html module

class lingpy.tests.convert.test_html.Tests(methodName='runTest')

Bases: lingpy.tests.util_testing.WithTempDir

test_alm2html()
test_color_range()
test_msa2html()
test_psa2html()
test_strings_and_tokens2html()
lingpy.tests.convert.test_html.template_path(*comps)

lingpy.tests.convert.test_plot module

class lingpy.tests.convert.test_plot.Plt(*args, **kw)

Bases: mock.mock.MagicMock

static plot(*args, **kw)
class lingpy.tests.convert.test_plot.Sch(*args, **kw)

Bases: mock.mock.MagicMock

static dendrogram(*args, **kw)
class lingpy.tests.convert.test_plot.TestPlot(methodName='runTest')

Bases: lingpy.tests.util_testing.WithTempDir

setUp()

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

test_plots()

lingpy.tests.convert.test_strings module

Test conversions involving strings.

class lingpy.tests.convert.test_strings.TestIsConstant(methodName='runTest')

Bases: unittest.case.TestCase

test_all_absent()
test_all_present()
test_not_constant()
class lingpy.tests.convert.test_strings.TestWriteNexus(methodName='runTest')

Bases: lingpy.tests.util_testing.WithTempDir

Tests for write_nexus

assertRegexWorkaround(a, b)
setUp()

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

test_beast()
test_beastwords()
test_error_on_unknown_mode()
test_error_on_unknown_ref()
test_merge_custom_statements()
test_mrbayes()
test_splitstree()
test_traitlab()
class lingpy.tests.convert.test_strings.Tests(methodName='runTest')

Bases: unittest.case.TestCase

test_matrix2dst()
test_msa2str()
test_pap2csv()
test_pap2nex()
test_scorer2str()

Test conversion of scorers to strings.

lingpy.tests.convert.test_tree module

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

Bases: lingpy.tests.util_testing.WithTempDir

setUp()

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

test__nwk_format()
test_nwk2tree_matrix()

Module contents