uo.tests.unit.algorithm package

Subpackages

Submodules

uo.tests.unit.algorithm.test_algorithm module

class uo.tests.unit.algorithm.test_algorithm.TestAlgorithm(methodName='runTest')

Bases: TestCase

test_algorithm_copy()
test_algorithm_initialization()
test_algorithm_properties()
test_algorithm_string_representation()
test_problem_not_defined()
class uo.tests.unit.algorithm.test_algorithm.TestAlgorithmProperties(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_name_should_be_as_it_is_in_constructor()
test_problem_dimension_should_be_same_that_it_is_in_constructor()
test_problem_file_path_should_be_same_that_it_is_in_constructor()
test_problem_is_minimization_should_be_same_that_it_is_in_constructor()
test_problem_name_should_be_same_that_it_is_in_constructor()
class uo.tests.unit.algorithm.test_algorithm.TestEvaluation(methodName='runTest')

Bases: TestCase

test_set_evaluation_float_value()
test_set_evaluation_none()
test_set_evaluation_positive_integer()
test_set_evaluation_zero()

uo.tests.unit.algorithm.test_optimizer module

class uo.tests.unit.algorithm.test_optimizer.Test__Optimizer__(methodName='runTest')

Bases: TestCase

test_best_solution_set_to_none()
test_copy_method()
test_empty_name_parameter()
test_execution_variables_set_to_none()
test_name_parameter_not_string()
test_none_output_control_parameter()
test_none_problem_parameter()
test_other_instance_variables_none_or_default()
test_output_control_parameter_not_instance_of_OutputControl()
test_problem_parameter_not_instance_of_Problem()
test_retrieve_optimizer_name_successfully()
test_string_rep_method()
test_valid_instance_variables9()
test_valid_parameters()
test_valid_parameters2()

uo.tests.unit.algorithm.test_output_control module

class uo.tests.unit.algorithm.test_output_control.TestOutputControl(methodName='runTest')

Bases: TestCase

test_fields_type_error()
test_initialized_with_custom_parameters()
test_initialized_with_default_parameters()
test_invalid_moment_value_error()
test_moments_type_error()
test_update_fields_attribute()
test_update_output_file_attribute()
class uo.tests.unit.algorithm.test_output_control.TestOutputControlProperties(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_is_output_file_should_be_same_that_it_is_set()
test_output_file_should_be_as_it_is_in_constructor()

Module contents