def test_get_file_hashes(self):
    'Test get_file_hashes gets hashes of all files in directory,\n        excluding file with extensions in FILE_EXTENSIONS_TO_IGNORE.\n        '
    with self.swap(build, 'FILE_EXTENSIONS_TO_IGNORE', ('.html',)):
        file_hashes = dict()
        self.assertEqual(len(file_hashes), 0)
        file_hashes = build.get_file_hashes(MOCK_EXTENSIONS_DEV_DIR)
        self.assertGreater(len(file_hashes), 0)
        for filepath in file_hashes:
            abs_filepath = os.path.join(MOCK_EXTENSIONS_DEV_DIR, filepath)
            self.assertTrue(os.path.isfile(abs_filepath))
            self.assertFalse(filepath.endswith('.html'))
Test get_file_hashes gets hashes of all files in directory,
excluding file with extensions in FILE_EXTENSIONS_TO_IGNORE.
def test_get_file_hashes(self):
    'Test get_file_hashes gets hashes of all files in directory,\n        excluding file with extensions in FILE_EXTENSIONS_TO_IGNORE.\n        '
    with self.swap(build, 'FILE_EXTENSIONS_TO_IGNORE', ('.html',)):
        file_hashes = dict()
        self.assertEqual(len(file_hashes), 0)
        file_hashes = build.get_file_hashes(MOCK_EXTENSIONS_DEV_DIR)
        self.assertGreater(len(file_hashes), 0)
        for filepath in file_hashes:
            abs_filepath = os.path.join(MOCK_EXTENSIONS_DEV_DIR, filepath)
            self.assertTrue(os.path.isfile(abs_filepath))
            self.assertFalse(filepath.endswith('.html'))