#NEWLINE# def test_delete_aggregate( self ) : #NEWLINE# #INDENT# def stub_delete_aggregate( context , aggregate ) : #NEWLINE# #INDENT# self . assertEqual ( context , self . context , 'context' ) #NEWLINE# self . assertEqual ( '1' , aggregate , 'aggregate' ) #NEWLINE# stub_delete_aggregate . called = True #NEWLINE# #UNINDENT# self . stubs . Set ( self . controller . api , 'delete_aggregate' , stub_delete_aggregate ) #NEWLINE# self . controller . delete ( self . req , '1' ) #NEWLINE# self . assertTrue ( stub_delete_aggregate . called )