Language: Python
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    def test_sandboxed_render(self):
        """Assert that Jinja template rendering is sandboxed."""
        template_code = "{{ ''.__class__.__name__ }}"
        with self.assertRaises(SecurityError):
            render_jinja2(template_code=template_code, context={})