Skip to content

Commit

Permalink
test that already passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed May 18, 2010
1 parent 472c6cf commit 66fe4a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_collection.py
Expand Up @@ -1033,6 +1033,9 @@ def test_as_class(self):
self.failIf(isinstance(c.find_one(), SON))
self.assert_(isinstance(c.find_one(as_class=SON), SON))

self.assertEqual(1, c.find_one(as_class=SON)["x"])
self.assertEqual(1, c.find(as_class=SON).next()["x"])


if __name__ == "__main__":
unittest.main()

0 comments on commit 66fe4a4

Please sign in to comment.