Back to index

python3.2  3.2.2
Public Member Functions
test.test_openpty.OpenptyTest Class Reference

List of all members.

Public Member Functions

def test

Detailed Description

Definition at line 10 of file test_openpty.py.


Member Function Documentation

Definition at line 11 of file test_openpty.py.

00011 
00012     def test(self):
00013         master, slave = os.openpty()
00014         if not os.isatty(slave):
00015             self.fail("Slave-end of pty is not a terminal.")
00016 
00017         os.write(slave, b'Ping!')
00018         self.assertEqual(os.read(master, 1024), b'Ping!')

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: