def METHOD_NAME(self):
    self.infunc.side_effect = ["raise ValueError('') from AttributeError",
                                EOFError('Finished')]
    self.console.interact()
    output = ''.join(''.join(call[1]) for call in self.stderr.method_calls)
    expected = dedent("""
    AttributeError
    The above exception was the direct cause of the following exception:
    Traceback (most recent call last):
      File "<console>", line 1, in <module>
    ValueError
    """)
    self.assertIn(expected, output)