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)
Regression tests for #16257: dynamic list_display_links support.
dataset/ETHPy150Open vmalloc/mongomock/tests/test__collection_api.py/CollectionAPITest.test__ordered_insert_find--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/admin_changelist/tests.py/ChangeListTests.test_dynamic_list_display_links