'If L{None} is passed for the C{ui} parameter to L{_NewConnectionHelper}
and /dev/tty is not available, the L{ConsoleUI} used is associated with
some file which always produces a C{b"no"} response.'

def test_nottyUI(self):

    tty = FilePath(self.mktemp())
    helper = _NewConnectionHelper(None, None, None, None, None, None, None, None, None, None, tty)
    result = self.successResultOf(helper.ui.prompt('did    this    break?'))
    self.assertFalse(result)
