'Test _check_mako_file_is_safe with display_name_with_default_escaped
fails.'

def test_check_mako_expression_display_name(self):

    linter = MakoTemplateLinter()
    results = FileResults('')
    mako_template = textwrap.dedent('\n                                                <%page    expression_filter="h"/>\n                                                ${course.display_name_with_default_escaped}\n                                ')
    linter._check_mako_file_is_safe(mako_template, results)
    self.assertEqual(len(results.violations), 1)
    self.assertEqual(results.violations[0].rule, Rules.python_deprecated_display_name)
