diff options
| author | Si Feng <si.feng@me.com> | 2013-07-21 17:27:56 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-02-10 05:38:43 -0500 |
| commit | b102c27ff4d21ea6262e600227530f75337a5df2 (patch) | |
| tree | 448783436b3dd1bcc27576d9cc1d7e5fbc3477a8 /tests/validators | |
| parent | 0d98422b1365ae1e75051036936aab31248d5ee1 (diff) | |
Fixed #20784 -- Added inverse_match parameter to RegexValidator.
Diffstat (limited to 'tests/validators')
| -rw-r--r-- | tests/validators/tests.py | 4 |
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), ) |
