#NEWLINE# def test_delete_book( self ) : #NEWLINE# #INDENT# self . assertTrue ( self . client . login ( username = 'martin' , password = 'secr3t' ) ) #NEWLINE# response = self . client . get ( reverse ( 'admin:testapp_book_delete' , args = ( 1 , ) ) ) #NEWLINE# self . assertEqual ( response . status_code , 403 ) #NEWLINE# self . assertTrue ( self . client . login ( username = 'adrian' , password = 'secr3t' ) ) #NEWLINE# response = self . client . get ( reverse ( 'admin:testapp_book_delete' , args = ( 1 , ) ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 )