'Assert that the mode of the created unix socket is set to the mode
specified to the reactor method.'

def _modeTest(self, methodName, path, factory):

    mode = 384
    reactor = self.buildReactor()
    unixPort = getattr(reactor, methodName)(path, factory, mode=mode)
    unixPort.stopListening()
    self.assertEqual(S_IMODE(stat(path).st_mode), mode)
