#NEWLINE# def test_large_deletes( self ) : #NEWLINE# #INDENT# 'Regression for #13309 -- if the number of objects > chunk size, deletion still occurs' #NEWLINE# for x in range ( 300 ) : #NEWLINE# #INDENT# track = Book . objects . create ( pagecount = ( noop + 100 ) ) #NEWLINE# #UNINDENT# def noop( * args , **kwargs ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# models . signals . post_delete . connect ( noop , sender = Book ) #NEWLINE# Book . objects . all ( ) . delete ( ) #NEWLINE# models . signals . post_delete . disconnect ( noop , sender = Book ) #NEWLINE# self . assertEqual ( Book . objects . count ( ) , 0 )