#NEWLINE# def test_other_user( self ) : #NEWLINE# #INDENT# 'Another user should not be able to change information about any other user.' #NEWLINE# TestUsers . new_user ( username = 'user2' , password = 'user2' ) #NEWLINE# self . client . login ( username = 'user2' , password = 'user2' ) #NEWLINE# response = self . get_response ( self . user . id , params = self . params ) #NEWLINE# self . assertPermissionDenied ( response ) #NEWLINE# user = User . objects . get ( id = self . user . id ) #NEWLINE# self . assertEqual ( user . first_name , 'Test' ) #NEWLINE# self . assertEqual ( user . last_name , 'User' )