class TunnelDeviceTestsMixin: (source)
Known subclasses: twisted.pair.test.test_tuntap.FakeTapDeviceTests
, twisted.pair.test.test_tuntap.FakeTapDeviceWithPITests
, twisted.pair.test.test_tuntap.FakeTunDeviceTests
, twisted.pair.test.test_tuntap.RealDeviceWithoutProtocolInformationTests
, twisted.pair.test.test_tuntap.RealDeviceWithProtocolInformationTests
A mixin defining tests that apply to _IInputOutputSystem
implementations.
Method | set |
Create the _IInputOutputSystem provider under test and open a tunnel using it. |
Method | test_close |
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 |
The object under test provides _IInputOutputSystem . |
Method | test_ioctl |
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_ioctl |
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_read |
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 |
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 |
If a UDP datagram is written the tunnel device then it is received by the network to which it is addressed. |
Method | test_write |
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 | _invalid |
Get an invalid file descriptor. |
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).
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).
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.
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).
If a UDP datagram is sent to an address reachable by the tunnel device then it can be read out of the tunnel device.
If a UDP datagram is written the tunnel device then it is received by the network to which it is addressed.
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).