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