'Create a new socket using the given address family and return that
socket\'s file descriptor.  The socket will automatically be closed when
the test is torn down.'

def _socket(self, addressFamily):

    s = socket(addressFamily)
    self.addCleanup(s.close)
    return s.fileno()
