def test_linear_to_viper_log(self): """ Tests :func:`colour.models.log.linear_to_viper_log` definition. """ self.assertAlmostEqual( linear_to_viper_log(0.01), 0.022482893450635387, places=7) self.assertAlmostEqual( linear_to_viper_log(0.18), 0.63600806701041346, places=7) self.assertAlmostEqual( linear_to_viper_log(1), 1, places=7)