'L{ResourceScriptDirectory.getChild} returns a resource which renders a
response with the HTTP 200 status code and the content of the rpy\'s
C{request} global.'

def test_renderException(self):

    tmp = FilePath(self.mktemp())
    tmp.makedirs()
    child = tmp.child('test.epy')
    child.setContent('raise    Exception("nooo")')
    resource = PythonScript(child._asBytesPath(), None)
    request = DummyRequest([''])
    d = _render(resource, request)
    def cbRendered(ignored):
        self.assertIn('nooo', ''.join(request.written))
    d.addCallback(cbRendered)
    return d
