uo.tests.unit package
Subpackages
- uo.tests.unit.algorithm package
- Subpackages
- uo.tests.unit.algorithm.exact package
- uo.tests.unit.algorithm.metaheuristic package
- Subpackages
- Submodules
- uo.tests.unit.algorithm.metaheuristic.test_additional_statistics_control module
- uo.tests.unit.algorithm.metaheuristic.test_additional_statistics_control_2 module
- uo.tests.unit.algorithm.metaheuristic.test_finish_control module
- uo.tests.unit.algorithm.metaheuristic.test_metaheuristic module
- uo.tests.unit.algorithm.metaheuristic.test_single_solution_metaheuristic module
- Module contents
- Submodules
- uo.tests.unit.algorithm.test_algorithm module
TestAlgorithm
TestAlgorithmProperties
TestAlgorithmProperties.setUp()
TestAlgorithmProperties.setUpClass()
TestAlgorithmProperties.tearDown()
TestAlgorithmProperties.tearDownClass()
TestAlgorithmProperties.test_name_should_be_as_it_is_in_constructor()
TestAlgorithmProperties.test_problem_dimension_should_be_same_that_it_is_in_constructor()
TestAlgorithmProperties.test_problem_file_path_should_be_same_that_it_is_in_constructor()
TestAlgorithmProperties.test_problem_is_minimization_should_be_same_that_it_is_in_constructor()
TestAlgorithmProperties.test_problem_name_should_be_same_that_it_is_in_constructor()
TestEvaluation
- uo.tests.unit.algorithm.test_optimizer module
Test__Optimizer__
Test__Optimizer__.test_best_solution_set_to_none()
Test__Optimizer__.test_copy_method()
Test__Optimizer__.test_empty_name_parameter()
Test__Optimizer__.test_execution_variables_set_to_none()
Test__Optimizer__.test_name_parameter_not_string()
Test__Optimizer__.test_none_output_control_parameter()
Test__Optimizer__.test_none_problem_parameter()
Test__Optimizer__.test_other_instance_variables_none_or_default()
Test__Optimizer__.test_output_control_parameter_not_instance_of_OutputControl()
Test__Optimizer__.test_problem_parameter_not_instance_of_Problem()
Test__Optimizer__.test_retrieve_optimizer_name_successfully()
Test__Optimizer__.test_string_rep_method()
Test__Optimizer__.test_valid_instance_variables9()
Test__Optimizer__.test_valid_parameters()
Test__Optimizer__.test_valid_parameters2()
- uo.tests.unit.algorithm.test_output_control module
TestOutputControl
TestOutputControl.test_fields_type_error()
TestOutputControl.test_initialized_with_custom_parameters()
TestOutputControl.test_initialized_with_default_parameters()
TestOutputControl.test_invalid_moment_value_error()
TestOutputControl.test_moments_type_error()
TestOutputControl.test_update_fields_attribute()
TestOutputControl.test_update_output_file_attribute()
TestOutputControlProperties
TestOutputControlProperties.setUp()
TestOutputControlProperties.setUpClass()
TestOutputControlProperties.tearDown()
TestOutputControlProperties.tearDownClass()
TestOutputControlProperties.test_is_output_file_should_be_same_that_it_is_set()
TestOutputControlProperties.test_output_file_should_be_as_it_is_in_constructor()
- Module contents
- Subpackages
- uo.tests.unit.problem package
- Submodules
- uo.tests.unit.problem.test_problem__copy__ module
- uo.tests.unit.problem.test_problem_properties module
TestProblemProperties
TestProblemProperties.setUp()
TestProblemProperties.setUpClass()
TestProblemProperties.tearDown()
TestProblemProperties.tearDownClass()
TestProblemProperties.test_empty_name_problem_initialization()
TestProblemProperties.test_invalid_name_problem_initialization()
TestProblemProperties.test_is_minimization_should_be_equal_as_in_constructor()
TestProblemProperties.test_problem_name_should_be_equal_as_in_constructor()
- Module contents
- uo.tests.unit.solution package
- Submodules
- uo.tests.unit.solution.test_distance_calculation_cache_control_statistics module
TestDistanceCalculationCacheControlStatistics
TestDistanceCalculationCacheControlStatistics.test_cache_property_returns_empty_dictionary_when_no_cache_set()
TestDistanceCalculationCacheControlStatistics.test_cache_property_returns_set_dictionary()
TestDistanceCalculationCacheControlStatistics.test_format_returns_formatted_string_representation_with_specified_format_specification2()
TestDistanceCalculationCacheControlStatistics.test_increment_cache_hit_count_increments_cache_hit_count_property()
TestDistanceCalculationCacheControlStatistics.test_increment_cache_request_count_increments_cache_request_count_property()
TestDistanceCalculationCacheControlStatistics.test_invalid_parameters_raises_type_error()
TestDistanceCalculationCacheControlStatistics.test_setting_invalid_cache_raises_type_error()
TestDistanceCalculationCacheControlStatistics.test_valid_parameters_set_properties_correctly()
- uo.tests.unit.solution.test_evaluation_cache_control_statistics_operations module
TestEvaluationCacheControlStatisticsOperations
TestEvaluationCacheControlStatisticsOperations.setUp()
TestEvaluationCacheControlStatisticsOperations.setUpClass()
TestEvaluationCacheControlStatisticsOperations.tearDown()
TestEvaluationCacheControlStatisticsOperations.tearDownClass()
TestEvaluationCacheControlStatisticsOperations.test_add_to_cache_should_work_1()
TestEvaluationCacheControlStatisticsOperations.test_add_to_cache_should_work_1a()
TestEvaluationCacheControlStatisticsOperations.test_add_to_cache_should_work_2()
TestEvaluationCacheControlStatisticsOperations.test_add_to_cache_should_work_2a()
TestEvaluationCacheControlStatisticsOperations.test_cache_hit_count_should_be_one_after_increment()
TestEvaluationCacheControlStatisticsOperations.test_cache_request_count_should_be_one_after_increment()
TestEvaluationCacheControlStatisticsOperations.test_clear_cache_should_work_0()
TestEvaluationCacheControlStatisticsOperations.test_clear_cache_should_work_0a()
- uo.tests.unit.solution.test_evaluation_cache_control_statistics_properties module
TestEvaluationCacheControlStatisticsProperties
TestEvaluationCacheControlStatisticsProperties.setUp()
TestEvaluationCacheControlStatisticsProperties.setUpClass()
TestEvaluationCacheControlStatisticsProperties.tearDown()
TestEvaluationCacheControlStatisticsProperties.tearDownClass()
TestEvaluationCacheControlStatisticsProperties.test_cache_hit_count_should_be_zero_after_construction()
TestEvaluationCacheControlStatisticsProperties.test_cache_request_count_should_be_zero_after_construction()
- uo.tests.unit.solution.test_solution module
TestSolutionProperties
TestSolutionProperties.setUp()
TestSolutionProperties.setUpClass()
TestSolutionProperties.tearDown()
TestSolutionProperties.tearDownClass()
TestSolutionProperties.test_distance_calculation_cache_cs__request_count_should_be_zero_after_constructor()
TestSolutionProperties.test_distance_calculation_cache_hit_count_should_be_zero_after_constructor()
TestSolutionProperties.test_evaluation_cache_cs__request_count_should_be_zero_after_constructor()
TestSolutionProperties.test_evaluation_cache_cs_hit_count_should_be_zero_after_constructor()
TestSolutionProperties.test_fitness_value_should_be_equal_as_in_constructor()
TestSolutionProperties.test_fitness_value_should_be_equal_as_value_set_by_property_setter()
TestSolutionProperties.test_fitness_value_should_be_equal_as_value_set_by_property_setter_2()
TestSolutionProperties.test_is_feasible_should_be_equal_as_in_constructor()
TestSolutionProperties.test_is_feasible_should_be_equal_as_value_set_by_property_setter()
TestSolutionProperties.test_is_feasible_should_be_equal_as_value_set_by_property_setter_2()
TestSolutionProperties.test_objective_value_should_be_equal_as_in_constructor()
TestSolutionProperties.test_objective_value_should_be_equal_as_value_set_by_property_setter()
TestSolutionProperties.test_representation_should_be_equal_as_value_set_by_property_setter()
TestSolutionProperties.test_representation_should_be_equal_as_value_set_by_property_setter_2()
- uo.tests.unit.solution.test_solution1 module
TestSolution
TestSolution.test_attribute_access_and_modification()
TestSolution.test_calculate_quality_with_caching()
TestSolution.test_deep_copy()
TestSolution.test_default_representation_value()
TestSolution.test_default_values_for_caches()
TestSolution.test_default_values_for_fitness_and_objective()
TestSolution.test_evaluate_with_problem()
TestSolution.test_format_to_string()
TestSolution.test_initialization_with_valid_representation_and_problem()
TestSolution.test_instantiation_with_valid_parameters()
TestSolution.test_method_calls_and_results()
TestSolution.test_raises_TypeError_if_problem_not_of_type_Problem()
TestSolution.test_raises_TypeError_if_representation_not_of_type_R_co()
TestSolution.test_random_seed_set_to_random_integer()
TestSolution.test_representation_distance_with_caching()
TestSolution.test_sets_representation_to_given_representation2()
TestSolution.test_string_conversion()
TestSolution.test_string_representation()
TestSolution.test_type_error_raised()
- uo.tests.unit.solution.test_solution2 module
TestSolution2
TestSolution2.test_copy_from_method()
TestSolution2.test_copy_method()
TestSolution2.test_create_instance_with_invalid_parameters()
TestSolution2.test_set_and_get_is_feasible()
TestSolution2.test_set_fitness_value_with_invalid_type()
TestSolution2.test_set_fitness_values_with_invalid_type()
TestSolution2.test_set_get_fitness_value_attribute()
TestSolution2.test_set_get_fitness_values_attribute()
TestSolution2.test_set_get_objective_value_attribute()
TestSolution2.test_set_get_objective_values_attribute()
TestSolution2.test_set_is_feasible_with_invalid_type()
TestSolution2.test_set_objective_value_with_invalid_type()
TestSolution2.test_set_objective_values_with_invalid_type()
TestSolution2.test_string_rep()
TestSolution2.test_string_representation()
- uo.tests.unit.solution.test_solution_void_object_str module
TestSolutionVoidIntObject
TestSolutionVoidIntObject.test_attribute_access_and_modification()
TestSolutionVoidIntObject.test_deep_copy()
TestSolutionVoidIntObject.test_default_representation_value()
TestSolutionVoidIntObject.test_default_values_for_caches()
TestSolutionVoidIntObject.test_default_values_for_fitness_and_objective()
TestSolutionVoidIntObject.test_evaluate_with_problem()
TestSolutionVoidIntObject.test_format_to_string()
TestSolutionVoidIntObject.test_initialization_with_valid_representation_and_problem()
TestSolutionVoidIntObject.test_instantiation_with_valid_parameters()
TestSolutionVoidIntObject.test_method_calls_and_results()
TestSolutionVoidIntObject.test_raises_TypeError_if_problem_not_of_type_Problem()
TestSolutionVoidIntObject.test_random_seed_set_to_random_integer()
TestSolutionVoidIntObject.test_sets_representation_to_given_representation2()
TestSolutionVoidIntObject.test_string_conversion()
TestSolutionVoidIntObject.test_string_representation()
TestSolutionVoidIntObject.test_type_error_raised()
- Module contents
- uo.tests.unit.utils package
- Submodules
- uo.tests.unit.utils.test_complex_counter_bit_array_full module
TestComplexCounterBitArrayFull
TestComplexCounterBitArrayFull.test_can_progress_complex_counter()
TestComplexCounterBitArrayFull.test_can_progress_x_2_complex_counter_with_two_counters()
TestComplexCounterBitArrayFull.test_can_progress_x_4_complex_counter_with_two_counters()
TestComplexCounterBitArrayFull.test_create_instance_with_given_number_of_counters()
TestComplexCounterBitArrayFull.test_create_instance_with_zero_counters()
TestComplexCounterBitArrayFull.test_get_current_state()
TestComplexCounterBitArrayFull.test_progress_complex_counter()
TestComplexCounterBitArrayFull.test_progress_complex_counter_with_one_counter()
TestComplexCounterBitArrayFull.test_raises_type_error_if_number_of_counters_not_integer()
TestComplexCounterBitArrayFull.test_reset_complex_counter()
TestComplexCounterBitArrayFull2
TestComplexCounterBitArrayFull2.test_can_progress_complex_counter()
TestComplexCounterBitArrayFull2.test_copy_complex_counter()
TestComplexCounterBitArrayFull2.test_create_instance_with_counter_size_2()
TestComplexCounterBitArrayFull2.test_create_instance_with_counter_size_3()
TestComplexCounterBitArrayFull2.test_create_instance_with_given_number_of_counters()
TestComplexCounterBitArrayFull2.test_create_instance_with_large_number_of_counters()
TestComplexCounterBitArrayFull2.test_create_instance_with_single_counter()
TestComplexCounterBitArrayFull2.test_get_current_state()
TestComplexCounterBitArrayFull2.test_progress_complex_counter()
TestComplexCounterBitArrayFull2.test_raises_type_error_if_number_of_counters_not_integer()
TestComplexCounterBitArrayFull2.test_reset_complex_counter()
TestComplexCounterBitArrayFull2.test_returns_false_when_progress_called_on_counter_with_max_value()
TestComplexCounterBitArrayFull2.test_returns_false_when_reset_called_on_counter_with_no_counters()
- uo.tests.unit.utils.test_test_complex_counter_uniform_ascending module
TestComplexCounterUniformAscending
TestComplexCounterUniformAscending.test_copy_complex_counter()
TestComplexCounterUniformAscending.test_create_instance_with_negative_counter_size()
TestComplexCounterUniformAscending.test_create_instance_with_negative_number_of_counters()
TestComplexCounterUniformAscending.test_create_instance_with_one_number_of_counters()
TestComplexCounterUniformAscending.test_create_instance_with_valid_parameters()
TestComplexCounterUniformAscending.test_create_instance_with_valid_parameters_1()
TestComplexCounterUniformAscending.test_create_instance_with_valid_parameters_2()
TestComplexCounterUniformAscending.test_create_instance_with_valid_parameters_3()
TestComplexCounterUniformAscending.test_create_instance_with_zero_counter_size()
TestComplexCounterUniformAscending.test_create_instance_with_zero_number_of_counters()
TestComplexCounterUniformAscending.test_get_current_state()
TestComplexCounterUniformAscending.test_make_progress()
TestComplexCounterUniformAscending.test_make_progressX2()
TestComplexCounterUniformAscending.test_make_progressX3()
TestComplexCounterUniformAscending.test_make_progressX4()
TestComplexCounterUniformAscending.test_progress_when_max_state_reached()
TestComplexCounterUniformAscending.test_reset_complex_counter()
- Module contents
Submodules
uo.tests.unit.test_dummy module
- class uo.tests.unit.test_dummy.TestDummy(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_dummy_obj_dimension_should_be_42()
- test_dummy_obj_dimension_should_be_dummy_val()
- test_dummy_obj_name_should_be_some_problem()