'If the source file a L{PythonScript} is initialized with doesn\'t exist,
L{PythonScript.render} sets the HTTP response code to I{NOT FOUND}.'

def test_notFoundRender(self):

    resource = PythonScript(self.mktemp(), None)
    request = DummyRequest([''])
    d = _render(resource, request)
    def cbRendered(ignored):
        self.assertEqual(request.responseCode, NOT_FOUND)
    d.addCallback(cbRendered)
    return d
