sfepy.base.testing module

class sfepy.base.testing.TestCommon(**kwargs)[source]
static compare_vectors(vec1, vec2, allowed_error=1e-08, label1='vec1', label2='vec2', norm=None)
static eval_coor_expression(expression, coor)
get_number()
static report(*argc)

All tests should print via this function.

run(debug=False)
static xfail(test_method)

Decorator that allows a test to fail.