17.12. test_model

Test functions of model.py

17.12.1. Module Contents

17.12.1.1. Functions

same_ex(ex1, ex2)

Compare to expressions for mathematical equality.

test_add_remove_reaction_benchmark(model, benchmark, solver)

test_add_metabolite(model)

test_remove_metabolite_subtractive(model)

test_remove_metabolite_destructive(model)

test_compartments(model)

test_add_reaction(model)

test_add_reaction_context(model)

test_add_reaction_from_other_model(model)

test_model_remove_reaction(model)

test_reaction_remove(model)

test_reaction_delete(model)

test_remove_gene(model)

test_group_model_reaction_association(model)

test_group_members_add_to_model(model)

test_group_loss_of_elements(model)

test_exchange_reactions(model)

test_add_boundary(model, metabolites, reaction_type, prefix)

test_add_boundary_context(model, metabolites, reaction_type, prefix)

test_add_existing_boundary(model, metabolites, reaction_type)

test_copy_benchmark(model, solver, benchmark)

test_copy_benchmark_large_model(large_model, solver, benchmark)

test_copy(model)

test_copy_with_groups(model)

test_deepcopy_benchmark(model, benchmark)

test_deepcopy(model)

test_add_reaction_orphans(model)

test_merge_models(model, tiny_toy_model)

test_change_objective_benchmark(model, benchmark, solver)

test_get_objective_direction(model)

test_set_objective_direction(model)

test_slim_optimize(model)

test_optimize(model, solver)

test_change_objective(model)

test_problem_properties(model)

test_solution_data_frame(model)

test_context_manager(model)

test_objective_coefficient_reflects_changed_objective(model)

test_change_objective_through_objective_coefficient(model)

test_transfer_objective(model)

test_model_from_other_model(model)

test_add_reactions(model)

test_add_reactions_single_existing(model)

test_add_reactions_duplicate(model)

test_add_cobra_reaction(model)

test_all_objects_point_to_all_other_correct_objects(model)

test_objects_point_to_correct_other_after_copy(model)

test_remove_reactions(model)

test_objective(model)

test_change_objective(model)

test_set_reaction_objective(model)

test_set_reaction_objective_str(model)

test_invalid_objective_raises(model)

test_solver_change(model)

test_no_change_for_same_solver(model)

test_invalid_solver_change_raises(model)

test_change_solver_to_cplex_and_check_copy_works(model)

test_copy_preserves_existing_solution(solved_model)

test_repr_html_(model)

test_model.stable_optlang = ['glpk', 'cplex', 'gurobi'][source]
test_model.optlang_solvers[source]
test_model.same_ex(ex1, ex2)[source]

Compare to expressions for mathematical equality.

test_model.test_add_remove_reaction_benchmark(model, benchmark, solver)[source]
test_model.test_add_metabolite(model)[source]
test_model.test_remove_metabolite_subtractive(model)[source]
test_model.test_remove_metabolite_destructive(model)[source]
test_model.test_compartments(model)[source]
test_model.test_add_reaction(model)[source]
test_model.test_add_reaction_context(model)[source]
test_model.test_add_reaction_from_other_model(model)[source]
test_model.test_model_remove_reaction(model)[source]
test_model.test_reaction_remove(model)[source]
test_model.test_reaction_delete(model)[source]
test_model.test_remove_gene(model)[source]
test_model.test_group_model_reaction_association(model)[source]
test_model.test_group_members_add_to_model(model)[source]
test_model.test_group_loss_of_elements(model)[source]
test_model.test_exchange_reactions(model)[source]
test_model.test_add_boundary(model, metabolites, reaction_type, prefix)[source]
test_model.test_add_boundary_context(model, metabolites, reaction_type, prefix)[source]
test_model.test_add_existing_boundary(model, metabolites, reaction_type)[source]
test_model.test_copy_benchmark(model, solver, benchmark)[source]
test_model.test_copy_benchmark_large_model(large_model, solver, benchmark)[source]
test_model.test_copy(model)[source]
test_model.test_copy_with_groups(model)[source]
test_model.test_deepcopy_benchmark(model, benchmark)[source]
test_model.test_deepcopy(model)[source]
test_model.test_add_reaction_orphans(model)[source]
test_model.test_merge_models(model, tiny_toy_model)[source]
test_model.test_change_objective_benchmark(model, benchmark, solver)[source]
test_model.test_get_objective_direction(model)[source]
test_model.test_set_objective_direction(model)[source]
test_model.test_slim_optimize(model)[source]
test_model.test_optimize(model, solver)[source]
test_model.test_change_objective(model)[source]
test_model.test_problem_properties(model)[source]
test_model.test_solution_data_frame(model)[source]
test_model.test_context_manager(model)[source]
test_model.test_objective_coefficient_reflects_changed_objective(model)[source]
test_model.test_change_objective_through_objective_coefficient(model)[source]
test_model.test_transfer_objective(model)[source]
test_model.test_model_from_other_model(model)[source]
test_model.test_add_reactions(model)[source]
test_model.test_add_reactions_single_existing(model)[source]
test_model.test_add_reactions_duplicate(model)[source]
test_model.test_add_cobra_reaction(model)[source]
test_model.test_all_objects_point_to_all_other_correct_objects(model)[source]
test_model.test_objects_point_to_correct_other_after_copy(model)[source]
test_model.test_remove_reactions(model)[source]
test_model.test_objective(model)[source]
test_model.test_change_objective(model)[source]
test_model.test_set_reaction_objective(model)[source]
test_model.test_set_reaction_objective_str(model)[source]
test_model.test_invalid_objective_raises(model)[source]
test_model.test_solver_change(model)[source]
test_model.test_no_change_for_same_solver(model)[source]
test_model.test_invalid_solver_change_raises(model)[source]
test_model.test_change_solver_to_cplex_and_check_copy_works(model)[source]
test_model.test_copy_preserves_existing_solution(solved_model)[source]
test_model.test_repr_html_(model)[source]