def test_ignoredExtensionsIgnored(self):
    '\n        A request for the I{base} child of a L{File} succeeds with a resource\n        for the I{base<extension>} file in the path the L{File} was created\n        with if such a file exists and the L{File} has been configured to\n        ignore the I{<extension>} extension.\n        '
    base = FilePath(self.mktemp())
    base.makedirs()
    base.child('foo.bar').setContent(b'baz')
    base.child('foo.quux').setContent(b'foobar')
    file = static.File(base.path, ignoredExts=('.bar',))
    request = DummyRequest([b'foo'])
    child = resource.getChildForRequest(file, request)
    d = self._render(child, request)

    def cbRendered(ignored):
        self.assertEqual(b''.join(request.written), b'baz')
    d.addCallback(cbRendered)
    return d
A request for the I{base} child of a L{File} succeeds with a resource
for the I{base<extension>} file in the path the L{File} was created
with if such a file exists and the L{File} has been configured to
ignore the I{<extension>} extension.
def test_ignoredExtensionsIgnored(self):
    '\n        A request for the I{base} child of a L{File} succeeds with a resource\n        for the I{base<extension>} file in the path the L{File} was created\n        with if such a file exists and the L{File} has been configured to\n        ignore the I{<extension>} extension.\n        '
    base = FilePath(self.mktemp())
    base.makedirs()
    base.child('foo.bar').setContent(b'baz')
    base.child('foo.quux').setContent(b'foobar')
    file = static.File(base.path, ignoredExts=('.bar',))
    request = DummyRequest([b'foo'])
    child = resource.getChildForRequest(file, request)
    d = self._render(child, request)

    def cbRendered(ignored):
        self.assertEqual(b.join(request.written), b'baz')
    d.addCallback(cbRendered)
    return d