pangea.contrib.treeoflife.tests package

Submodules

pangea.contrib.treeoflife.tests.populate_test_db module

class pangea.contrib.treeoflife.tests.populate_test_db.TaxaTree[source]

Bases: object

add_node(taxon_id, parent_id, rank)[source]
create_all_nodes_in_db()[source]
create_node_in_db(taxon_id)[source]
pangea.contrib.treeoflife.tests.populate_test_db.add_names(tree, names_filename)[source]

Add names from names_filename to database.

pangea.contrib.treeoflife.tests.populate_test_db.add_nodes(nodes_filename)[source]
pangea.contrib.treeoflife.tests.populate_test_db.populate_test_db()[source]
pangea.contrib.treeoflife.tests.populate_test_db.tokenize(filehandle)[source]

pangea.contrib.treeoflife.tests.test_treeoflife module

Test suite for TreeOfLife module.

class pangea.contrib.treeoflife.tests.test_treeoflife.TestMicrobeDir(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_get_bacteria_entry()[source]
test_get_ecoli_annotation()[source]
test_get_root_annotation()[source]
class pangea.contrib.treeoflife.tests.test_treeoflife.TestMicrobeDirAPI(methodName='runTest')[source]

Bases: rest_framework.test.APITestCase

classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_annotate_taxa()[source]

Ensure we can update a defunct taxa name.

test_get_annotated_descendants()[source]

Ensure we can get descendants.

class pangea.contrib.treeoflife.tests.test_treeoflife.TestTreeOfLife(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_get_root_by_name()[source]
test_get_root_node()[source]
test_get_specific_genus_by_name()[source]
test_get_specific_species_by_name()[source]
class pangea.contrib.treeoflife.tests.test_treeoflife.TestTreeOfLifeAPI(methodName='runTest')[source]

Bases: rest_framework.test.APITestCase

classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_canonicalize_multiple_taxa_name()[source]

Ensure we can update a defunct taxa name.

test_canonicalize_taxa_name()[source]

Ensure we can update a defunct taxa name.

test_canonicalize_taxa_name_case_insensitive()[source]

Ensure we can update a defunct taxa name.

test_get_descendants()[source]

Ensure we can get descendants.

test_search_non_canon_name()[source]

Ensure we can update a defunct taxa name.

test_search_taxa_name()[source]

Ensure we can update a defunct taxa name.

test_search_taxa_name_rank_specified()[source]

Ensure we can update a defunct taxa name.

Module contents