sfepy.base.testing module

class sfepy.base.testing.NLSStatus(**kwargs)[source]

Custom nonlinear solver status storing stopping condition of all time steps.

sfepy.base.testing.assert_equal(a, b, msg='assertion of equality failed!')[source]
sfepy.base.testing.check_conditions(conditions)[source]
sfepy.base.testing.compare_vectors(vec1, vec2, allowed_error=1e-08, label1='vec1', label2='vec2', norm=None)[source]
sfepy.base.testing.eval_coor_expression(expression, coor)[source]
sfepy.base.testing.report(*argc)[source]

All tests should print via this function.

sfepy.base.testing.run_declaratice_example(ex_filename, output_dir, ext='.vtk', remove_prefix='')[source]

Run a declarative example in ex_filename given relatively to sfepy.base_dir.