'Test _check_mako_file_is_safe does not fail on entities when
safe-by-default is not set.'

def test_check_mako_entity_with_no_default(self):

    linter = MakoTemplateLinter()
    results = FileResults('')
    mako_template = "${'Rock    &#38;    Roll'}"
    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)
