def test__ordered_insert_find(self):

        values = list(range(20))
        random.shuffle(values)
        for val in values:
            self.db.collection.insert({'_id': val})

        find_cursor = self.db.collection.find()

        for val in values:
            in_db_val = find_cursor.next()
            expected = {'_id': val}
            self.assertEqual(in_db_val, expected)
Tests ordered inserts
dataset/ETHPy150Open vmalloc/mongomock/tests/test__collection_api.py/CollectionAPITest.test__ordered_insert_find