def test_unix(self): """ When passed the file descriptor of a socket created with the C{AF_UNIX} address family, L{getSocketFamily} returns C{AF_UNIX}. """ self.assertEqual(AF_UNIX, getSocketFamily(self._socket(AF_UNIX)))
def test_inet6(self): """ When passed the file descriptor of a socket created with the C{AF_INET6} address family, L{getSocketFamily} returns C{AF_INET6}. """ self.assertEqual(AF_INET6, getSocketFamily(self._socket(AF_INET6)))