#NEWLINE# def test_repr( self ) : #NEWLINE# #INDENT# class UniqueTogetherSerializer ( DocumentSerializer ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# model = UniqueTogetherModel #NEWLINE# #UNINDENT# #UNINDENT# serializer = UniqueTogetherSerializer ( ) #NEWLINE# expected = dedent ( "\n            UniqueTogetherSerializer():\n                id = ObjectIdField(read_only=True)\n                name = CharField(required=True)\n                code = IntegerField(required=True)\n                class Meta:\n                    validators = [<UniqueTogetherValidator(queryset=UniqueTogetherModel.objects, fields=('name', 'code'))>]\n        " ) #NEWLINE# assert ( repr ( serializer ) == expected )