diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index 419eae632..2f64694c1 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -979,7 +979,7 @@ class TestSerializerMetaClass(TestCase): fields = ('text',) exclude = ('text',) - msginitial = "Cannot set both 'fields' and 'exclude' options on serializer ExampleSerializer." + msginitial = "Cannot set 'fields' together with 'exclude' or 'include' options on serializer ExampleSerializer." with self.assertRaisesMessage(AssertionError, msginitial): ExampleSerializer().fields