'Regression for #13309 -- if the number of objects > chunk size, deletion still occurs'

def test_large_deletes(self):

    for x in range(300):
        Book.objects.create(pagecount=(x + 100))
    def noop(*args, **kwargs):
        pass
    models.signals.post_delete.connect(noop, sender=Book)
    Book.objects.all().delete()
    models.signals.post_delete.disconnect(noop, sender=Book)
    self.assertEqual(Book.objects.count(), 0)
