(things)
| 1759 | self.assertEqual(3, (db.test.find_one(sort=[("x", -1)]))["x"]) |
| 1760 | |
| 1761 | def to_list(things): |
| 1762 | return [thing["x"] for thing in things] |
| 1763 | |
| 1764 | self.assertEqual([2, 1, 3], to_list(db.test.find())) |
| 1765 | self.assertEqual([1, 2, 3], to_list(db.test.find(sort=[("x", 1)]))) |
no outgoing calls
no test coverage detected