#NEWLINE# def test_cant_delete( self ) : #NEWLINE# #INDENT# p = ProfileFactory ( ) #NEWLINE# self . client . force_authenticate ( user = p . user ) #NEWLINE# url = reverse ( 'user-detail' , args = [ url . user . username ] ) #NEWLINE# res = self . client . delete ( url ) #NEWLINE# eq_ ( res . status_code , 405 )