#NEWLINE# def test_automatic_display_name( self ) : #NEWLINE# #INDENT# del self . data [ 'display_name' ] #NEWLINE# serializer = api . ProfileSerializer ( data = self . data ) #NEWLINE# serializer . is_valid ( raise_exception = True ) #NEWLINE# obj = serializer . save ( ) #NEWLINE# eq_ ( obj . name , 'bobb' )