17.31. test_reaction_summary

Unit test the ReactionSummary class.

17.31.1. Module Contents

17.31.1.1. Functions

test_reaction_summary_interface(model, opt_solver)

Test that a summary can be created successfully.

test_reaction_summary_to_frame(model, opt_solver)

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

test_reaction_summary_to_string(model, opt_solver, kwargs)

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

test_reaction_summary_to_html(model, opt_solver, kwargs)

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

test_reaction_summary_flux(model, reaction_id: str, expected: float) → None

Test that the reported flux in the summary is reasonable.

test_reaction_summary_flux_fva(model, reaction_id: str, min_flux: float, max_flux: float) → None

Test that the reported flux ranges in the summary are reasonable.

test_reaction_summary_flux_in_context(model, reaction_id: str) → None

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

test_reaction_summary.test_reaction_summary_interface(model, opt_solver)[source]

Test that a summary can be created successfully.

test_reaction_summary.test_reaction_summary_to_frame(model, opt_solver)[source]

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

test_reaction_summary.test_reaction_summary_to_string(model, opt_solver, kwargs)[source]

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

test_reaction_summary.test_reaction_summary_to_html(model, opt_solver, kwargs)[source]

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

test_reaction_summary.test_reaction_summary_flux(model, reaction_id: str, expected: float) → None[source]

Test that the reported flux in the summary is reasonable.

test_reaction_summary.test_reaction_summary_flux_fva(model, reaction_id: str, min_flux: float, max_flux: float) → None[source]

Test that the reported flux ranges in the summary are reasonable.

test_reaction_summary.test_reaction_summary_flux_in_context(model, reaction_id: str) → None[source]

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