X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Ftests%2Ftests_aces_config.py;h=6925511e3d0b5cc28571549ef88713eb39473ce2;hp=5d57b90b5ae0882954cacbd55b56ca4d49ecbb59;hb=1f6e648af71fe0649f971c33f3624b1d5a780214;hpb=75d8749d3630921f8ced18c026cd3cf0d9af14b6 diff --git a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py index 5d57b90..6925511 100644 --- a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py +++ b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """ -Defines unit tests for the generated *ACES* configuration. +Defines unit tests for *ACES* configuration. """ import hashlib @@ -42,6 +42,7 @@ UNHASHABLE_TEST_PATTERNS = ('\.icc', '\.ocio') class TestACESConfig(unittest.TestCase): """ + Performs tests on the *ACES* configuration. """ def setUp(self): @@ -71,8 +72,28 @@ class TestACESConfig(unittest.TestCase): 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 = {} @@ -87,6 +108,8 @@ class TestACESConfig(unittest.TestCase): 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,