

def test__inline_map_reduce(self):
    result = self.db.things.inline_map_reduce(self.map_func, self.reduce_func)
    self.assertTrue(isinstance(result, list))
    self.assertEqual(len(result), 3)
    for doc in result:
        self.assertIn(doc, self.expected_results)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py CollectionMapReduceTest.test__inline_map_reduce/original