summaryrefslogtreecommitdiff
path: root/tests/testapp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testapp')
-rw-r--r--tests/testapp/models/lookup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testapp/models/lookup.py b/tests/testapp/models/lookup.py
index f8445c4f60..2362bcbef9 100644
--- a/tests/testapp/models/lookup.py
+++ b/tests/testapp/models/lookup.py
@@ -65,6 +65,10 @@ Article 4
{3: Article 3}
>>> articles.get_in_bulk([1000])
{}
+>>> articles.get_in_bulk([])
+Traceback (most recent call last):
+ ...
+AssertionError: get_in_bulk() cannot be passed an empty list.
# get_values() is just like get_list(), except it returns a list of
# dictionaries instead of object instances -- and you can specify which fields