def METHOD_NAME(self):
    self.infunc.side_effect = ["raise ValueError('')",
                                EOFError('Finished')]
    hook = mock.Mock()
    self.sysmod.excepthook = hook
    self.console.interact()
    self.assertTrue(hook.called)