gws.test.util.check

Assertions.

Source code: gws.test.util.check

Module Contents

gws.test.util.check.close(a, b, rel_tol=1e-09, abs_tol=0.0)

Compare numbers or sequences of numbers with a tolerance.

gws.test.util.check.norm_xml(s, nl=True)

Remove unsignificant whitespace from XML for easier comparison in tests. If nl is True, also put each tag on a new line for better readability.

gws.test.util.check.xml(actual, expected)

Compare two XML strings, ignoring unsignificant whitespace.