'Setup patches on linters for testing.'

def setUp(self):

    self.patch_is_valid_directory(MakoTemplateLinter)
    self.patch_is_valid_directory(JavaScriptLinter)
    self.patch_is_valid_directory(UnderscoreTemplateLinter)
    self.patch_is_valid_directory(PythonLinter)
    patcher = mock.patch('scripts.xss_linter.is_skip_dir', return_value=False)
    patcher.start()
    self.addCleanup(patcher.stop)
