'The L{ReverseProxyResource.getChild} method should return a resource
instance with the same class as the originating resource, forward
port, host, and reactor values, and update the path value with the
value passed.'

def test_getChild(self):

    reactor = MemoryReactor()
    resource = ReverseProxyResource(u'127.0.0.1', 1234, '/path', reactor)
    child = resource.getChild('foo', None)
    self.assertIsInstance(child, ReverseProxyResource)
    self.assertEqual(child.path, '/path/foo')
    self.assertEqual(child.port, 1234)
    self.assertEqual(child.host, u'127.0.0.1')
    self.assertIdentical(child.reactor, resource.reactor)
