def mirrored(setup):
@wraps(setup)<EOL>def wrapped_setup(self):<EOL><INDENT>self.mirror, self.mock = mirror()<EOL>return setup(self, self.mirror, self.mock)<EOL><DEDENT>return wrapped_setup<EOL>
Convience decorator for setUp in testcases::

        @mirrored
        def setUp(self, mirror, mock):
            ...

    is the same as::

        def setUp(self):
            self.mirror, self.mock = mirror()
            mirror, mock = self.mirror, self.mock
            ...