'Test _check_python_file_is_safe with display_name_with_default_escaped
fails.'

def test_check_python_expression_display_name(self):

    linter = PythonLinter()
    results = FileResults('')
    python_file = textwrap.dedent("\n                                                context    =    {\n                                                                'display_name':    self.display_name_with_default_escaped,\n                                                }\n                                ")
    linter.check_python_file_is_safe(python_file, results)
    self.assertEqual(len(results.violations), 1)
    self.assertEqual(results.violations[0].rule, Rules.python_deprecated_display_name)
