'Test check_javascript_file_is_safe with interpolate()'

@data({'template': 'StringUtils.interpolate()', 'rule': None}, {'template': 'HtmlUtils.interpolateHtml()', 'rule': None}, {'template': 'interpolate(anything)', 'rule': Rules.javascript_interpolate})
def test_javascript_interpolate(self, data):

    linter = JavaScriptLinter()
    results = FileResults('')
    linter.check_javascript_file_is_safe(data['template'], results)
    self._validate_data_rules(data, results)
