17.29. test_metabolite_summary

Unit test the MetaboliteSummary class.

17.29.1. Module Contents

17.29.1.1. Functions

test_metabolite_summary_interface(model, opt_solver)

Test that a summary can be created successfully.

test_metabolite_summary_to_frame(model, opt_solver)

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

test_metabolite_summary_to_string(model, opt_solver, kwargs)

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

test_metabolite_summary_to_html(model, opt_solver, kwargs)

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

test_q8_producing_summary(model, opt_solver)

Test that the production summary of q8 is accurate.

test_q8_consuming_summary(model, opt_solver)

Test that the consumption summary of q8 is accurate.

test_fdp_production_with_fva(model, opt_solver)

Test that the production summary of fdp is within expected bounds.

test_metabolite_summary_flux_in_context(model, opt_solver, metabolite_id: str)

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

test_metabolite_summary.test_metabolite_summary_interface(model, opt_solver)[source]

Test that a summary can be created successfully.

test_metabolite_summary.test_metabolite_summary_to_frame(model, opt_solver)[source]

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

test_metabolite_summary.test_metabolite_summary_to_string(model, opt_solver, kwargs)[source]

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

test_metabolite_summary.test_metabolite_summary_to_html(model, opt_solver, kwargs)[source]

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

test_metabolite_summary.test_q8_producing_summary(model, opt_solver)[source]

Test that the production summary of q8 is accurate.

test_metabolite_summary.test_q8_consuming_summary(model, opt_solver)[source]

Test that the consumption summary of q8 is accurate.

test_metabolite_summary.test_fdp_production_with_fva(model, opt_solver)[source]

Test that the production summary of fdp is within expected bounds.

test_metabolite_summary.test_metabolite_summary_flux_in_context(model, opt_solver, metabolite_id: str)[source]

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