MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / test_DoubleValidatorStrict

Function test_DoubleValidatorStrict

pyxrf/gui_module/tests/test_useful_widgets.py:128–133  ·  view source on GitHub ↗
(text, range, result)

Source from the content-addressed store, hash-verified

126])
127# fmt: on
128def test_DoubleValidatorStrict(text, range, result):
129 validator = DoubleValidator()
130
131 if range is not None:
132 validator.setRange(range[0], range[1], 5)
133 assert validator.validate(text, 0)[0] == result, "Validation failed"
134
135
136# ==============================================================

Callers

nothing calls this directly

Calls 2

DoubleValidatorClass · 0.90
validateMethod · 0.45

Tested by

no test coverage detected