uo.tests.unit.solution package
Submodules
uo.tests.unit.solution.test_distance_calculation_cache_control_statistics module
- class uo.tests.unit.solution.test_distance_calculation_cache_control_statistics.TestDistanceCalculationCacheControlStatistics(methodName='runTest')
Bases:
TestCase
- test_cache_property_returns_empty_dictionary_when_no_cache_set()
- test_cache_property_returns_set_dictionary()
- test_format_returns_formatted_string_representation_with_specified_format_specification2()
- test_increment_cache_hit_count_increments_cache_hit_count_property()
- test_increment_cache_request_count_increments_cache_request_count_property()
- test_invalid_parameters_raises_type_error()
- test_setting_invalid_cache_raises_type_error()
- test_valid_parameters_set_properties_correctly()
uo.tests.unit.solution.test_evaluation_cache_control_statistics_operations module
- class uo.tests.unit.solution.test_evaluation_cache_control_statistics_operations.TestEvaluationCacheControlStatisticsOperations(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_add_to_cache_should_work_1()
- test_add_to_cache_should_work_1a()
- test_add_to_cache_should_work_2()
- test_add_to_cache_should_work_2a()
- test_cache_hit_count_should_be_one_after_increment()
- test_cache_request_count_should_be_one_after_increment()
- test_clear_cache_should_work_0()
- test_clear_cache_should_work_0a()
uo.tests.unit.solution.test_evaluation_cache_control_statistics_properties module
- class uo.tests.unit.solution.test_evaluation_cache_control_statistics_properties.TestEvaluationCacheControlStatisticsProperties(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_cache_hit_count_should_be_zero_after_construction()
- test_cache_request_count_should_be_zero_after_construction()
uo.tests.unit.solution.test_solution module
- class uo.tests.unit.solution.test_solution.TestSolutionProperties(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_distance_calculation_cache_cs__request_count_should_be_zero_after_constructor()
- test_distance_calculation_cache_hit_count_should_be_zero_after_constructor()
- test_evaluation_cache_cs__request_count_should_be_zero_after_constructor()
- test_evaluation_cache_cs_hit_count_should_be_zero_after_constructor()
- test_fitness_value_should_be_equal_as_in_constructor()
- 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_in_constructor()
- 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()
uo.tests.unit.solution.test_solution1 module
- class uo.tests.unit.solution.test_solution1.TestSolution(methodName='runTest')
Bases:
TestCase
- test_attribute_access_and_modification()
- test_calculate_quality_with_caching()
- test_deep_copy()
- test_default_representation_value()
- test_default_values_for_caches()
- test_default_values_for_fitness_and_objective()
- test_evaluate_with_problem()
- test_format_to_string()
- test_initialization_with_valid_representation_and_problem()
- test_instantiation_with_valid_parameters()
- test_method_calls_and_results()
- test_raises_TypeError_if_problem_not_of_type_Problem()
- test_raises_TypeError_if_representation_not_of_type_R_co()
- test_random_seed_set_to_random_integer()
- test_representation_distance_with_caching()
- test_sets_representation_to_given_representation2()
- test_string_conversion()
- test_string_representation()
- test_type_error_raised()
uo.tests.unit.solution.test_solution2 module
- class uo.tests.unit.solution.test_solution2.TestSolution2(methodName='runTest')
Bases:
TestCase
- test_copy_from_method()
- test_copy_method()
- test_create_instance_with_invalid_parameters()
- test_set_and_get_is_feasible()
- test_set_fitness_value_with_invalid_type()
- test_set_fitness_values_with_invalid_type()
- test_set_get_fitness_value_attribute()
- test_set_get_fitness_values_attribute()
- test_set_get_objective_value_attribute()
- test_set_get_objective_values_attribute()
- test_set_is_feasible_with_invalid_type()
- test_set_objective_value_with_invalid_type()
- test_set_objective_values_with_invalid_type()
- test_string_rep()
- test_string_representation()
uo.tests.unit.solution.test_solution_void_object_str module
- class uo.tests.unit.solution.test_solution_void_object_str.TestSolutionVoidIntObject(methodName='runTest')
Bases:
TestCase
- test_attribute_access_and_modification()
- test_deep_copy()
- test_default_representation_value()
- test_default_values_for_caches()
- test_default_values_for_fitness_and_objective()
- test_evaluate_with_problem()
- test_format_to_string()
- test_initialization_with_valid_representation_and_problem()
- test_instantiation_with_valid_parameters()
- test_method_calls_and_results()
- test_raises_TypeError_if_problem_not_of_type_Problem()
- test_random_seed_set_to_random_integer()
- test_sets_representation_to_given_representation2()
- test_string_conversion()
- test_string_representation()
- test_type_error_raised()