'Set up the for the test case'

def setup(self):

    prepare_stdout()
    output = StringIO()
    self.patch = (subunit_output.open_file, subunit_output.close_file)
    subunit_output.open_file = (lambda f: output)
    subunit_output.close_file = self.close_file
