def testNotFound(self):

    def create_404_response(real_path):
        real_404 = self._Render(real_path)
        self.assertEqual(200, real_404.status)
        real_404.status = 404
        return real_404
    root_404 = create_404_response('404.html')
    extensions_404 = create_404_response('extensions/404.html')
    apps_404 = create_404_response('apps/404.html')
    self.assertNotEqual(extensions_404, apps_404)
    self.assertEqual(root_404, self._Render('not_found.html'))
    self.assertEqual(root_404, self._Render('not_found/not_found.html'))
    self.assertEqual(extensions_404, self._Render('extensions/not_found.html'))
    self.assertEqual(extensions_404, self._Render('extensions/manifest/not_found.html'))
    self.assertEqual(extensions_404, self._Render('extensions/manifest/not_found/not_found.html'))
    self.assertEqual(apps_404, self._Render('apps/not_found.html'))
    self.assertEqual(apps_404, self._Render('apps/manifest/not_found.html'))
    self.assertEqual(apps_404, self._Render('apps/manifest/not_found/not_found.html'))
def testNotFound(self):

    def create_404_response(real_path):
        real_404 = self._Render(real_path)
        self.assertEqual(200, real_404.status)
        real_404.status = 404
        return real_404
    root_404 = create_404_response('404.html')
    extensions_404 = create_404_response('extensions/404.html')
    apps_404 = create_404_response('apps/404.html')
    self.assertNotEqual(extensions_404, apps_404)
    self.assertEqual(root_404, self._Render('not_found.html'))
    self.assertEqual(root_404, self._Render('not_found/not_found.html'))
    self.assertEqual(extensions_404, self._Render('extensions/not_found.html'))
    self.assertEqual(extensions_404, self._Render('extensions/manifest/not_found.html'))
    self.assertEqual(extensions_404, self._Render('extensions/manifest/not_found/not_found.html'))
    self.assertEqual(apps_404, self._Render('apps/not_found.html'))
    self.assertEqual(apps_404, self._Render('apps/manifest/not_found.html'))
    self.assertEqual(apps_404, self._Render('apps/manifest/not_found/not_found.html'))