summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_results.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_results.py b/tests/test_results.py
index 307ef762..f83b73dd 100644
--- a/tests/test_results.py
+++ b/tests/test_results.py
@@ -105,3 +105,8 @@ class NumbersTest(CoverageTest):
])
def test_should_fail_under(total, fail_under, precision, result):
assert should_fail_under(float(total), float(fail_under), precision) == result
+
+
+def test_should_fail_under_invalid_value():
+ with pytest.raises(ValueError):
+ should_fail_under(100.0, 101, 0)