def test_terminal_tty(self): '''Test tty mode''' self.assertFalse(Terminal.isinteractive()) self.assertTrue(MockTerminal.isinteractive())
def test_terminal_ioctl(self): '''Test Terminal system call always fails with a bad descriptor''' self.assertFalse(Terminal._ioctl_gwinsz(10)) self.assertFalse(Terminal._ioctl_gwinsz(-1))