def test_linear_to_dci_p3_log(self): """ Tests :func:`colour.models.log.linear_to_dci_p3_log` definition. """ self.assertAlmostEqual( linear_to_dci_p3_log(0), 0.0, places=7) self.assertAlmostEqual( linear_to_dci_p3_log(0.18), 461.99220597484737, places=7) self.assertAlmostEqual( linear_to_dci_p3_log(1), 893.4459834052784, places=7)