#NEWLINE# def test_bulk( self ) : #NEWLINE# #INDENT# from django.db.models.sql.constants import GET_ITERATOR_CHUNK_SIZE #NEWLINE# s = S . objects . create ( r = R . objects . create ( ) ) #NEWLINE# for i in xrange ( ( 2 * GET_ITERATOR_CHUNK_SIZE ) ) : #NEWLINE# #INDENT# T . objects . create ( s = s ) #NEWLINE# #UNINDENT# self . assertNumQueries ( 5 , s . delete ) #NEWLINE# self . assertFalse ( S . objects . exists ( ) )