'If the I{--port} option not specified but the I{--personal} option is,
L{Options} defaults the port to C{UserDirectory.userSocketName} in the
user\'s home directory.'

def test_defaultPersonalPath(self):

    options = Options()
    options.parseOptions(['--personal'])
    path = os.path.expanduser(os.path.join('~', UserDirectory.userSocketName))
    self.assertEqual(endpoints._parseServer(options['port'], None)[:2], ('UNIX', (path, None)))
