'Test _check_mako_file_is_safe in html context without the page level
default h filter suppresses expression level violation'

def test_check_mako_expressions_in_html_without_default(self):

    linter = MakoTemplateLinter()
    results = FileResults('')
    mako_template = textwrap.dedent('\n                                                ${x    |    h}\n                                ')
    linter._check_mako_file_is_safe(mako_template, results)
    self.assertEqual(len(results.violations), 1)
    self.assertEqual(results.violations[0].rule, Rules.mako_missing_default)
