#NEWLINE# def test_other_user( self ) : #NEWLINE# #INDENT# 'It should reject the request from another user.' #NEWLINE# TestUsers . new_user ( username = 'user2' , password = 'user2' ) #NEWLINE# self . client . login ( username = 'user2' , password = 'user2' ) #NEWLINE# response = self . get_response ( response . user . id ) #NEWLINE# self . assertPermissionDenied ( response ) #NEWLINE# self . assertTrue ( User . objects . filter ( id = self . user . id ) . exists ( ) )