summaryrefslogtreecommitdiff
path: root/tests/validators/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validators/tests.py')
-rw-r--r--tests/validators/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index ec91486658..54e5dfbeed 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -187,6 +187,10 @@ TEST_DATA = (
(RegexValidator('x'), 'y', ValidationError),
(RegexValidator(re.compile('x')), 'y', ValidationError),
+ (RegexValidator('x', inverse_match=True), 'y', None),
+ (RegexValidator(re.compile('x'), inverse_match=True), 'y', None),
+ (RegexValidator('x', inverse_match=True), 'x', ValidationError),
+ (RegexValidator(re.compile('x'), inverse_match=True), 'x', ValidationError),
)