def testCdlVariables(self): """ Test that variables are set properly. """ crawler = FsPath.create(PathHolder(self.__cdlFile)) self.assertEqual(crawler.var("type"), "cdl") self.assertEqual(crawler.var("category"), "lut") self.assertEqual(crawler.var("slope"), [1.014, 1.0104, 0.62]) self.assertEqual(crawler.var("offset"), [-0.00315, -0.00124, 0.3103]) self.assertEqual(crawler.var("power"), [1.0, 0.9983, 1.0]) self.assertEqual(crawler.var("saturation"), 1.09)
def testCccVariables(self): """ Test that variables are set properly. """ crawler = FsPath.create(PathHolder(self.__cccFile)) self.assertEqual(crawler.var("type"), "cc") self.assertEqual(crawler.var("category"), "lut") self.assertEqual(crawler.var("slope"), [1.1, 1.2, 1.3]) self.assertEqual(crawler.var("offset"), [0.1, 0.2, 0.3]) self.assertEqual(crawler.var("power"), [1.4, 1.5, 1.6]) self.assertEqual(crawler.var("saturation"), 1.0)
def testCdlCrawler(self): """ Test that the Cdl crawler test works properly. """ crawler = FsPath.create(PathHolder(self.__cdlFile)) self.assertIsInstance(crawler, Cdl)