sfepy.base.testing module

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

All tests should print via this function.

run(debug=False, ifile=None)[source]
static xfail(test_method)[source]

Decorator that allows a test to fail.