#NEWLINE# def test_user_change_email( self ) : #NEWLINE# #INDENT# data = self . get_user_data ( self . admin ) #NEWLINE# data [ 'email' ] = ( 'new_' + data [ 'email' ] ) #NEWLINE# response = self . client . post ( ( '/admin/auth/user/%s/' % self . admin . pk ) , data ) #NEWLINE# self . assertRedirects ( response , '/admin/auth/user/' ) #NEWLINE# row = LogEntry . objects . latest ( 'id' ) #NEWLINE# self . assertEqual ( self . change_message , 'Changed email.' )