def test_retrieve_object_for_sanity(self):
        self.mongo_client.__getitem__('123').AndReturn(self.mongo_db)
        self.mongo_db.authenticate('123', 'abc')
        self.mongo_db.__getitem__('data_objects').AndReturn(self.mongo_coll)
        self.mongo_coll.find_one(mox.IsA(dict)).AndReturn({'_id': None,
                                                           'value':
                                                           {'foo': 'bar'}})

        self.mocker.ReplayAll()
        tmp = self.cut.retrieve_object('123', 'abc',
                                       '520f896217b168455c7d5fb9')
        self.mocker.VerifyAll()

        self.assertEquals(tmp, {'value': {'foo': 'bar'}})
Test retrieval.
dataset/ETHPy150Open tmetsch/suricate/tests/data_object_store_test.py/MongoStoreTest.test_retrieve_object_for_sanity