Add correct path to previous "ACES" config in unit tests.
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / tests / tests_aces_config.py
index 6925511..61acfa5 100644 (file)
@@ -9,13 +9,19 @@ import hashlib
 import os
 import re
 import shutil
+import sys
+
+# TODO: Temporary ugly thing to be discussed, ideally the package should be
+# in PYTHONPATH.
+sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
+
 import tempfile
 import unittest
 
-from aces_ocio.util import files_walker
+from aces_ocio.utilities import files_walker
 from aces_ocio.create_aces_config import (
     ACES_OCIO_CTL_DIRECTORY_ENVIRON,
-    createACESConfig)
+    create_ACES_config)
 
 __author__ = 'ACES Developers'
 __copyright__ = 'Copyright (C) 2014 - 2015 - ACES Developers'
@@ -33,7 +39,7 @@ __all__ = ['REFERENCE_CONFIG_ROOT_DIRECTORY',
 # TODO: Investigate how the current config has been generated to use it for
 # tests.
 # REFERENCE_CONFIG_ROOT_DIRECTORY = os.path.abspath(
-# os.path.join(os.path.dirname(__file__), '..', '..'))
+#     os.path.join(os.path.dirname(__file__), '..', '..', '..'))
 REFERENCE_CONFIG_ROOT_DIRECTORY = '/colour-science/colour-ramblings/ocio/aces'
 
 HASH_TEST_PATTERNS = ('\.3dl', '\.lut', '\.csp')
@@ -112,8 +118,8 @@ class TestACESConfig(unittest.TestCase):
         generated configuration and comparing them to the existing one.
         """
 
-        self.assertTrue(createACESConfig(self.__aces_ocio_ctl_directory,
-                                         self.__temporary_directory))
+        self.assertTrue(create_ACES_config(self.__aces_ocio_ctl_directory,
+                                           self.__temporary_directory))
 
         reference_hashes = self.directory_hashes(
             REFERENCE_CONFIG_ROOT_DIRECTORY,