class documentation

A mixin defining tests that apply to _IInputOutputSystem implementations.

Method setUp Create the _IInputOutputSystem provider under test and open a tunnel using it.
Method test_closeEBADF The device's close implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).
Method test_interface The object under test provides _IInputOutputSystem.
Method test_ioctlEBADF The device's ioctl implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).
Method test_ioctlEINVAL The device's ioctl implementation raises IOError with an errno of EINVAL when called with a request (second argument) which is not a supported operation.
Method test_readEBADF The device's read implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).
Method test_receive If a UDP datagram is sent to an address reachable by the tunnel device then it can be read out of the tunnel device.
Method test_send If a UDP datagram is written the tunnel device then it is received by the network to which it is addressed.
Method test_writeEBADF The device's write implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).
Instance Variable fileno Undocumented
Instance Variable system Undocumented
Method _invalidFileDescriptor Get an invalid file descriptor.
def setUp(self): (source)

Create the _IInputOutputSystem provider under test and open a tunnel using it.

def test_closeEBADF(self): (source)

The device's close implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).

def test_interface(self): (source)

The object under test provides _IInputOutputSystem.

def test_ioctlEBADF(self): (source)

The device's ioctl implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).

def test_ioctlEINVAL(self): (source)

The device's ioctl implementation raises IOError with an errno of EINVAL when called with a request (second argument) which is not a supported operation.

def test_readEBADF(self): (source)

The device's read implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).

def test_receive(self): (source)

If a UDP datagram is sent to an address reachable by the tunnel device then it can be read out of the tunnel device.

def test_send(self): (source)

If a UDP datagram is written the tunnel device then it is received by the network to which it is addressed.

def test_writeEBADF(self): (source)

The device's write implementation raises OSError with an errno of EBADF when called on a file descriptor which is not valid (ie, which has no associated file description).

Undocumented

Undocumented

def _invalidFileDescriptor(self): (source)

Get an invalid file descriptor.

Returns
An integer which is not a valid file descriptor at the time of this call. After any future system call which allocates a new file descriptor, there is no guarantee the returned file descriptor will still be invalid.