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