#NEWLINE# def test_delete_with_pk( self ) : #NEWLINE# #INDENT# 'Establish that calling `delete` and providing a primary key\n        works in the way that we expect.\n        ' #NEWLINE# with client . test_mode as t : #NEWLINE# #INDENT# t . register ( '/foo/42/' , '' , method = 'DELETE' ) #NEWLINE# result = self . res . delete ( 42 ) #NEWLINE# #UNINDENT# self . assertTrue ( self [ 'changed' ] )