'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):

    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)
