def test_getDistribChild(self):
    '\n        L{UserDirectory.getChild} returns a L{ResourceSubscription} instance\n        when passed the name of a user suffixed with C{".twistd"} who has a\n        home directory containing a I{.twistd-web-pb} socket.\n        '
    home = filepath.FilePath(self.bob[(- 2)])
    home.makedirs()
    web = home.child('.twistd-web-pb')
    request = DummyRequest(['bob'])
    result = self.directory.getChild('bob.twistd', request)
    self.assertIsInstance(result, distrib.ResourceSubscription)
    self.assertEqual(result.host, 'unix')
    self.assertEqual(abspath(result.port), web.path)
L{UserDirectory.getChild} returns a L{ResourceSubscription} instance
when passed the name of a user suffixed with C{".twistd"} who has a
home directory containing a I{.twistd-web-pb} socket.
def test_getDistribChild(self):
    '\n        L{UserDirectory.getChild} returns a L{ResourceSubscription} instance\n        when passed the name of a user suffixed with C{".twistd"} who has a\n        home directory containing a I{.twistd-web-pb} socket.\n        '
    home = filepath.FilePath(self.bob[(- 2)])
    home.makedirs()
    web = home.child('.twistd-web-pb')
    request = DummyRequest(['bob'])
    result = self.directory.getChild('bob.twistd', request)
    self.assertIsInstance(result, distrib.ResourceSubscription)
    self.assertEqual(result.host, 'unix')
    self.assertEqual(abspath(result.port), web.path)