summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorSi Feng <si.feng@me.com>2013-07-21 17:27:56 -0700
committerTim Graham <timograham@gmail.com>2014-02-10 05:38:43 -0500
commitb102c27ff4d21ea6262e600227530f75337a5df2 (patch)
tree448783436b3dd1bcc27576d9cc1d7e5fbc3477a8 /tests/validators
parent0d98422b1365ae1e75051036936aab31248d5ee1 (diff)
Fixed #20784 -- Added inverse_match parameter to RegexValidator.
Diffstat (limited to 'tests/validators')
-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),
)