mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 13:54:47 +03:00
-
This commit is contained in:
parent
9a5efea4fa
commit
09d5f85d5d
|
@ -77,7 +77,7 @@ class TestUniquenessValidation(TestCase):
|
|||
data = {'username': 'existing'}
|
||||
serializer = UniquenessSerializer(data=data)
|
||||
assert not serializer.is_valid()
|
||||
assert serializer.errors == {'username': ['UniquenessModel with this username already exists.']}
|
||||
assert serializer.errors == {'username': ['uniqueness model with this username already exists.']}
|
||||
|
||||
def test_is_unique(self):
|
||||
data = {'username': 'other'}
|
||||
|
|
Loading…
Reference in New Issue
Block a user