Backport of r12941 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
14 lines
413 B
Python
14 lines
413 B
Python
import datetime
|
|
|
|
from django.test import TestCase
|
|
|
|
from models import Book
|
|
|
|
class LargeDeleteTests(TestCase):
|
|
def test_large_deletes(self):
|
|
"Regression for #13309 -- if the number of objects > chunk size, deletion still occurs"
|
|
for x in range(300):
|
|
track = Book.objects.create(pagecount=x+100)
|
|
Book.objects.all().delete()
|
|
self.assertEquals(Book.objects.count(), 0)
|