def test_get_recently_changed_filenames(self):
    'Test get_recently_changed_filenames detects file recently added.'
    build.ensure_directory_exists(EMPTY_DIR)
    assets_hashes = build.get_file_hashes(MOCK_ASSETS_DEV_DIR)
    recently_changed_filenames = []
    self.assertEqual(len(recently_changed_filenames), 0)
    recently_changed_filenames = build.get_recently_changed_filenames(assets_hashes, EMPTY_DIR)
    with self.swap(build, 'FILE_EXTENSIONS_TO_IGNORE', ('.html', '.py')):
        self.assertEqual(len(recently_changed_filenames), build.get_file_count(MOCK_ASSETS_DEV_DIR))
    build.safe_delete_directory_tree(EMPTY_DIR)
Test get_recently_changed_filenames detects file recently added.
def test_get_recently_changed_filenames(self):
    
    build.ensure_directory_exists(EMPTY_DIR)
    assets_hashes = build.get_file_hashes(MOCK_ASSETS_DEV_DIR)
    recently_changed_filenames = []
    self.assertEqual(len(recently_changed_filenames), 0)
    recently_changed_filenames = build.get_recently_changed_filenames(assets_hashes, EMPTY_DIR)
    with self.swap(build, 'FILE_EXTENSIONS_TO_IGNORE', ('.html', '.py')):
        self.assertEqual(len(recently_changed_filenames), build.get_file_count(MOCK_ASSETS_DEV_DIR))
    build.safe_delete_directory_tree(EMPTY_DIR)