def test_hash_should_be_inserted(self):
    'Test hash_should_be_inserted returns the correct boolean value\n        for filepath that should be hashed.\n        '
    with self.swap(build, 'FILEPATHS_NOT_TO_RENAME', ('*.py', 'path/to/fonts/*', 'path/to/third_party.min.js.map', 'path/to/third_party.min.css.map')):
        self.assertFalse(build.hash_should_be_inserted('path/to/fonts/fontawesome-webfont.svg'))
        self.assertFalse(build.hash_should_be_inserted('path/to/third_party.min.css.map'))
        self.assertFalse(build.hash_should_be_inserted('path/to/third_party.min.js.map'))
        self.assertTrue(build.hash_should_be_inserted('path/to/wrongFonts/fonta.eot'))
        self.assertTrue(build.hash_should_be_inserted('rich_text_components/Video/protractor.js'))
        self.assertFalse(build.hash_should_be_inserted('main.py'))
        self.assertFalse(build.hash_should_be_inserted('extensions/domain.py'))
Test hash_should_be_inserted returns the correct boolean value
for filepath that should be hashed.
def test_hash_should_be_inserted(self):
    'Test hash_should_be_inserted returns the correct boolean value\n        for filepath that should be hashed.\n        '
    with self.swap(build, 'FILEPATHS_NOT_TO_RENAME', ('*.py', 'path/to/fonts/*', 'path/to/third_party.min.js.map', 'path/to/third_party.min.css.map')):
        self.assertFalse(build.hash_should_be_inserted('path/to/fonts/fontawesome-webfont.svg'))
        self.assertFalse(build.hash_should_be_inserted('path/to/third_party.min.css.map'))
        self.assertFalse(build.hash_should_be_inserted('path/to/third_party.min.js.map'))
        self.assertTrue(build.hash_should_be_inserted('path/to/wrongFonts/fonta.eot'))
        self.assertTrue(build.hash_should_be_inserted('rich_text_components/Video/protractor.js'))
        self.assertFalse(build.hash_should_be_inserted('main.py'))
        self.assertFalse(build.hash_should_be_inserted('extensions/domain.py'))