# 17.31. test_model_summary¶

Unit test the model summary.

## 17.31.1. Module Contents¶

### 17.31.1.1. Functions¶

 test_model_summary_interface(model, opt_solver) Test that a summary can be created successfully. test_model_summary_to_frame(model, opt_solver) Test that the summary’s method to_frame can be called. test_model_summary_to_string(model, opt_solver, kwargs) Test that the summary’s method to_string can be called. test_model_summary_to_html(model, opt_solver, kwargs) Test that the summary’s method to_html can be called. test_model_summary_to_frame_previous_solution(model, opt_solver) Test that the summary correctly uses an existing solution. test_model_summary_flux(model, opt_solver) Test that the summary has expected fluxes. test_model_summary_fva(model, opt_solver) Test that the exchange summary is within expected bounds. test_model_summary_flux_in_context(model, opt_solver) Test that the model summary inside and outside of a context are equal.
test_model_summary.test_model_summary_interface(model, opt_solver)[source]

Test that a summary can be created successfully.

test_model_summary.test_model_summary_to_frame(model, opt_solver)[source]

Test that the summary’s method to_frame can be called.

test_model_summary.test_model_summary_to_string(model, opt_solver, kwargs)[source]

Test that the summary’s method to_string can be called.

test_model_summary.test_model_summary_to_html(model, opt_solver, kwargs)[source]

Test that the summary’s method to_html can be called.

test_model_summary.test_model_summary_to_frame_previous_solution(model, opt_solver)[source]

Test that the summary correctly uses an existing solution.

test_model_summary.test_model_summary_flux(model, opt_solver)[source]

Test that the summary has expected fluxes.

test_model_summary.test_model_summary_fva(model, opt_solver)[source]

Test that the exchange summary is within expected bounds.

test_model_summary.test_model_summary_flux_in_context(model, opt_solver)[source]

Test that the model summary inside and outside of a context are equal.