def test_custom_templates(self):
        setup_test_template_loader(
            {'404.html': 'This is a test template for a 404 error.',
             '500.html': 'This is a test template for a 500 error.'}
        )
        try:
            for code, url in ((404, '/views/non_existing_url/'), (500, '/views/server_error/')):
                response = self.client.get(url)
                self.assertContains(response, "test template for a %d error" % code,
                    status_code=code)
        finally:
            restore_template_loaders()
Evaluate an expression in the context of a given tuple and schema.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/view_tests/tests/test_defaults.py/DefaultsTests.test_custom_templates--crossover with--dataset/ETHPy150Open uwescience/raco/raco/expression/expression.py/Expression.evaluate