Permalink
Browse files

Include (currently broken) test for in_bulk([unknown_id])

  • Loading branch information...
doismellburning committed Jun 3, 2012
1 parent 984dac7 commit a1b5dd274964450e6790f39421c181fddd1a8611
Showing with 8 additions and 0 deletions.
  1. +8 −0 neo4django/tests/nodequeryset_tests.py
@@ -454,6 +454,14 @@ def test_in_bulk():
eq_(people[interesting_man.id].name, name)
eq_([boring_age, age], sorted(p.age for p in people.values()))
+@with_setup(setup_people, teardown)
+def test_in_bulk_not_found():
+ """
+ Tests QuerySet.in_builk() with items not found.
+ """
+ people = Person.objects.in_bulk([999999])
+ eq_(people, [])
+
@with_setup(setup_mice_and_people, teardown)
def test_contains():
q1 = Person.objects.filter(name__contains='a')

0 comments on commit a1b5dd2

Please sign in to comment.