def test_is_file_hash_provided_to_frontend(self):
    'Test is_file_hash_provided_to_frontend returns the correct boolean\n        value for filepath that should be provided to frontend.\n        '
    with self.swap(build, 'FILEPATHS_PROVIDED_TO_FRONTEND', ('path/to/file.js', 'path/to/file.html', 'file.js')):
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.js'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.html'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('file.js'))
    with self.swap(build, 'FILEPATHS_PROVIDED_TO_FRONTEND', ('path/to/*', '*.js', '*_end.html')):
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.js'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.html'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('file.js'))
        self.assertFalse(build.is_file_hash_provided_to_frontend('path/file.css'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('good_end.html'))
        self.assertFalse(build.is_file_hash_provided_to_frontend('bad_end.css'))
Test is_file_hash_provided_to_frontend returns the correct boolean
value for filepath that should be provided to frontend.
def test_is_file_hash_provided_to_frontend(self):
    'Test is_file_hash_provided_to_frontend returns the correct boolean\n        value for filepath that should be provided to frontend.\n        '
    with self.swap(build, 'FILEPATHS_PROVIDED_TO_FRONTEND', ('path/to/file.js', 'path/to/file.html', 'file.js')):
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.js'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.html'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('file.js'))
    with self.swap(build, 'FILEPATHS_PROVIDED_TO_FRONTEND', ('path/to/*', '*.js', '*_end.html')):
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.js'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('path/to/file.html'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('file.js'))
        self.assertFalse(build.is_file_hash_provided_to_frontend('path/file.css'))
        self.assertTrue(build.is_file_hash_provided_to_frontend('good_end.html'))
        self.assertFalse(build.is_file_hash_provided_to_frontend('bad_end.css'))