#NEWLINE# def test_delete_view( self ) : #NEWLINE# #INDENT# kwargs = self . admin_model . get_view_kwargs ( ) #NEWLINE# kwargs [ 'object' ] = SimpleDocument ( ) #NEWLINE# view = TestableDeleteView . as_view ( ** kwargs ) #NEWLINE# request = self . factory . get ( '/1/delete/' ) #NEWLINE# request . user = self . super_user #NEWLINE# response = view ( request ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# request = self . factory . post ( '/1/delete/' ) #NEWLINE# request . user = self . super_user #NEWLINE# response = view ( request ) #NEWLINE# self . assertEqual ( response . status_code , 302 )