Exemple #1
0
 def test_terminal_tty(self):
     '''Test tty mode'''
     self.assertFalse(Terminal.isinteractive())
     self.assertTrue(MockTerminal.isinteractive())
Exemple #2
0
 def test_terminal_tty(self):
     '''Test tty mode'''
     self.assertFalse(Terminal.isinteractive())
     self.assertTrue(MockTerminal.isinteractive())
Exemple #3
0
 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))
Exemple #4
0
 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))