@contextmanager
def dummy_copy(self):
    with patch('celery.result.copy') as copy:

        def passt(arg):
            return arg
        copy.side_effect = passt
        (yield)
@contextmanager
def dummy_copy(self):
    with patch('celery.result.copy') as copy:

        def passt(arg):
            return arg
        copy.side_effect = passt
        (yield)