def _mangle_pool_result(self, res):
        """ Mangle pool result for easier testing

            We can never predict the values of things like the ID (okay, that
            one is actually kind of doable) or the added and last_modified
            timestamp. This function will make sure the values are present but
            then strip them to make it easier to test against an expected
            result.
        """

        if isinstance(res, list):
            # res from list_prefix
            for p in res:
                self.assertIn('id', p)
                del(p['id'])

        elif isinstance(res, dict) and 'result' in res:
            # res from smart search
            for p in res['result']:
                self.assertIn('id', p)
                del(p['id'])

        elif isinstance(res, dict):
            # just one single prefix
            self.assertIn('id', res)
            del(res['id'])

        return res
dataset/ETHPy150Open SpriteLink/NIPAP/tests/upgrade-after.py/TestCheckdata._mangle_pool_result/original