'An implementation of L{IReactorSocket.adoptStreamConnection} raises
L{UnsupportedAddressFamily} if passed an address family it does not
support.'

def test_invalidAddressFamily(self):

    reactor = self.buildReactor()
    connection = socket.socket()
    self.addCleanup(connection.close)
    arbitrary = ((2 ** 16) + 7)
    self.assertRaises(UnsupportedAddressFamily, reactor.adoptStreamConnection, connection.fileno(), arbitrary, ServerFactory())
