#NEWLINE# def test_is_unique( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'username' : 'other' , #NEWLINE# #UNINDENT# } #NEWLINE# serializer = UniquenessSerializer ( data = self ) #NEWLINE# assert serializer . is_valid ( ) #NEWLINE# assert ( serializer . validated_data == { #NEWLINE# #INDENT# 'username' : 'other' , #NEWLINE# #UNINDENT# } )