'L{getChildForRequest} returns the first resource it encounters with a
C{isLeaf} attribute set to C{True}.'

def test_leafResource(self):

    request = DummyRequest(['foo', 'bar'])
    resource = Resource()
    resource.isLeaf = True
    result = getChildForRequest(resource, request)
    self.assertIdentical(resource, result)
