mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #20784 -- Added inverse_match parameter to RegexValidator.
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user