This file contains unit tests for the LBIJungle fitness estimator in the cassiopeia.tools module. It tests the functionality of the LBIJungle class on a small tree to ensure that fitness estimates are calculated correctly and make sense based on the tree structure.
The file defines a single test class TestLBIJungle
which inherits from unittest.TestCase
. This class contains two test methods: test_small_tree
and test_raises_error_if_leaf_name_startswith_underscore
.
A test class that contains unit tests for the LBIJungle fitness estimator.
The class sets up test scenarios and asserts expected outcomes for the LBIJungle fitness estimator.
Tests the LBIJungle fitness estimator on a small, manually constructed tree to verify that the fitness estimates are sensible.
Tests that the LBIJungle fitness estimator raises a FitnessEstimatorError when a leaf name starts with an underscore.
The tests check for proper error handling when invalid input is provided (e.g., leaf names starting with underscores).
These are unit tests, so performance is not a primary concern. However, the tests use a small tree to ensure quick execution.
This file contains unit tests for the LBIJungle fitness estimator in the cassiopeia.tools module. It tests the functionality of the LBIJungle class on a small tree to ensure that fitness estimates are calculated correctly and make sense based on the tree structure.
The file defines a single test class TestLBIJungle
which inherits from unittest.TestCase
. This class contains two test methods: test_small_tree
and test_raises_error_if_leaf_name_startswith_underscore
.
A test class that contains unit tests for the LBIJungle fitness estimator.
The class sets up test scenarios and asserts expected outcomes for the LBIJungle fitness estimator.
Tests the LBIJungle fitness estimator on a small, manually constructed tree to verify that the fitness estimates are sensible.
Tests that the LBIJungle fitness estimator raises a FitnessEstimatorError when a leaf name starts with an underscore.
The tests check for proper error handling when invalid input is provided (e.g., leaf names starting with underscores).
These are unit tests, so performance is not a primary concern. However, the tests use a small tree to ensure quick execution.