uo.tests.unit.algorithm.exact.total_enumeration package
Submodules
uo.tests.unit.algorithm.exact.total_enumeration.test_te_optimizer module
- class uo.tests.unit.algorithm.exact.total_enumeration.test_te_optimizer.TestFromConstructionTuple(methodName='runTest')
Bases:
TestCase
- test_create_new_instance_with_given_parameters()
- test_raise_TypeError_if_output_control_not_instance_of_OutputControl()
- test_raise_TypeError_if_problem_not_instance_of_Problem()
- test_return_created_instance()
- class uo.tests.unit.algorithm.exact.total_enumeration.test_te_optimizer.TestOptimize(methodName='runTest')
Bases:
TestCase
- test_initializes_execution_started_property()
- test_logs_overall_number_of_evaluations()
- test_output_control_parameter_not_instance_of_OutputControl()
- test_problem_parameter_not_instance_of_Problem()
- test_problem_solution_te_support_parameter_not_instance_of_TeOperationsSupport()
- test_solution_template_parameter_not_instance_of_Solution()
- test_writes_output_headers_if_needed()
- class uo.tests.unit.algorithm.exact.total_enumeration.test_te_optimizer.TestStringRep(methodName='runTest')
Bases:
TestCase
- test_returns_string_representation_with_current_solution()
- test_returns_string_representation_with_default_parameters()
- test_returns_string_representation_with_default_parameters_when_only_delimiter_is_specified()
- test_uses_specified_parameters()
- class uo.tests.unit.algorithm.exact.total_enumeration.test_te_optimizer.TestTeOptimizerMethodInit(methodName='runTest')
Bases:
TestCase
- setUp()
Hook method for setting up the test fixture before exercising it.
- classmethod setUpClass()
Hook method for setting up class fixture before running tests in the class.
- tearDown()
Hook method for deconstructing the test fixture after testing it.
- classmethod tearDownClass()
Hook method for deconstructing the class fixture after running all tests in the class.
- test_init_method_should_call_support_method_reset_once()
- test_init_method_should_evaluate_solution_template_once()
- test_init_method_should_evaluate_solution_template_once_with_supplied_problem()
- class uo.tests.unit.algorithm.exact.total_enumeration.test_te_optimizer.TestTeOptimizerProperties(methodName='runTest')
Bases:
TestCase
- setUp()
Hook method for setting up the test fixture before exercising it.
- classmethod setUpClass()
Hook method for setting up class fixture before running tests in the class.
- tearDown()
Hook method for deconstructing the test fixture after testing it.
- classmethod tearDownClass()
Hook method for deconstructing the class fixture after running all tests in the class.
- test_fitness_value_should_be_equal_as_value_set_by_property_setter()
- test_fitness_value_should_be_equal_as_value_set_by_property_setter_2()
- test_is_feasible_should_be_equal_as_in_constructor()
- test_is_feasible_should_be_equal_as_value_set_by_property_setter()
- test_is_feasible_should_be_equal_as_value_set_by_property_setter_2()
- test_objective_value_should_be_equal_as_value_set_by_property_setter()
- test_representation_should_be_equal_as_value_set_by_property_setter()
- test_representation_should_be_equal_as_value_set_by_property_setter_2()