'Test check_underscore_file_is_safe with expressions that are allowed
without escaping because the internal calls properly escape.'

@data({'template': '<%=    HtmlUtils.ensureHtml(message)    %>'}, {'template': '<%=    _.escape(message)    %>'})
def test_check_underscore_no_escape_allowed(self, data):

    linter = UnderscoreTemplateLinter()
    results = FileResults('')
    linter.check_underscore_file_is_safe(data['template'], results)
    self.assertEqual(len(results.violations), 0)
