def testCcVariables(self): """ Test that variables are set properly. """ crawler = FsCrawler.create(PathHolder(self.__ccFile)) self.assertEqual(crawler.var("type"), "cc") self.assertEqual(crawler.var("category"), "lut") self.assertEqual(crawler.var("slope"), [1.2, 1.3, 1.4]) self.assertEqual(crawler.var("offset"), [0.2, 0.3, 0.4]) self.assertEqual(crawler.var("power"), [1.5, 1.6, 1.7]) self.assertEqual(crawler.var("saturation"), 1.0)
def testCdlVariables(self): """ Test that variables are set properly. """ crawler = FsCrawler.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 testCcCrawler(self): """ Test that the Cc crawler test works properly. """ crawler = FsCrawler.create(PathHolder(self.__ccFile)) self.assertIsInstance(crawler, CcCrawler)