# -*- coding: utf-8 -*-
"""
-Defines unit tests for the generated *ACES* configuration.
+Defines unit tests for *ACES* configuration.
"""
import hashlib
class TestACESConfig(unittest.TestCase):
"""
+ Performs tests on the *ACES* configuration.
"""
def setUp(self):
shutil.rmtree(self.__temporary_directory)
@staticmethod
- def directory_hashes(directory, filters_in=None, filters_out=None):
+ def directory_hashes(directory,
+ filters_in=None,
+ filters_out=None,
+ flags=0):
"""
+ Recursively computes the hashes from the file within given directory.
+
+ Parameters
+ ----------
+ directory : str or unicode
+ Directory to compute the file hashes.
+ filters_in : array_like
+ Included patterns.
+ filters_out : array_like
+ Excluded patterns.
+ flags : int
+ Regex flags.
+
+ Returns
+ -------
+ dict
+ Directory file hashes.
"""
hashes = {}
def test_ACES_config(self):
"""
+ Performs tests on the *ACES* configuration by computing hashes on the
+ generated configuration and comparing them to the existing one.
"""
self.assertTrue(createACESConfig(self.__aces_ocio_ctl_directory,