Permalink
Browse files

add a test that already passes

  • Loading branch information...
1 parent a2a646b commit 66dddadeb8f252edd245a13504169c332fcb2149 Mike Dirolf committed Jun 4, 2009
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/test_collection.py
View
@@ -470,5 +470,20 @@ def test_large_limit(self):
self.assertEqual(1900, i)
+ def test_find_kwargs(self):
+ db = self.db
+ db.drop_collection("test")
+
+ for i in range(10):
+ db.test.insert({"x": i})
+
+ self.assertEqual(10, db.test.count())
+
+ sum = 0
+ for x in db.test.find({}, skip=4, limit=2):
+ sum += x["x"]
+
+ self.assertEqual(9, sum)
+
if __name__ == "__main__":
unittest.main()

0 comments on commit 66dddad

Please sign in to comment.