summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2011-09-10 21:44:57 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2011-09-10 21:44:57 +0000
commitf2bc919ec00457fd53f093af53ab71c7f1bcfbcd (patch)
treecd917936d2480dc3fb4c57603060018a6fc92119 /tests/regressiontests
parente95d0afe9e79f1864ea53e98007ca225a218417b (diff)
Ensure bulk_create returns what it is supposed to.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16791 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/bulk_create/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/bulk_create/tests.py b/tests/regressiontests/bulk_create/tests.py
index 8d3faa2379..d7d19a54aa 100644
--- a/tests/regressiontests/bulk_create/tests.py
+++ b/tests/regressiontests/bulk_create/tests.py
@@ -17,7 +17,8 @@ class BulkCreateTests(TestCase):
]
def test_simple(self):
- Country.objects.bulk_create(self.data)
+ created = Country.objects.bulk_create(self.data)
+ self.assertEqual(len(created), 4)
self.assertQuerysetEqual(Country.objects.order_by("-name"), [
"United States of America", "The Netherlands", "Germany", "Czech Republic"
], attrgetter("name"))