aboutsummaryrefslogtreecommitdiff
path: root/tests/errors
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors')
-rw-r--r--tests/errors/errors.test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/errors/errors.test.py b/tests/errors/errors.test.py
index 12cfcd5..0f39228 100644
--- a/tests/errors/errors.test.py
+++ b/tests/errors/errors.test.py
@@ -6,6 +6,7 @@ from edify.errors.anchors import (
from edify.errors.captures import InvalidTotalCaptureGroupsIndexError
from edify.errors.input import (
MustBeAStringError,
+ MustBeAtLeastTwoOperandsError,
MustBeInstanceError,
MustBeIntegerGreaterThanZeroError,
MustBeLessThanError,
@@ -107,6 +108,11 @@ def test_must_be_less_than():
assert "X must be less than Y" in str(error)
+def test_must_be_at_least_two_operands():
+ error = MustBeAtLeastTwoOperandsError("any_of")
+ assert "any_of requires at least two operands" in str(error)
+
+
def test_name_not_valid():
error = NameNotValidError("bad name")
assert "Name bad name is not valid" in str(error)