def test_domain_range_scale_luminance(self):
    '\n        Tests :func:`colour.colorimetry.luminance.luminance` definition\n        domain and range scale support.\n        '
    m = ('Newhall 1943', 'ASTM D1535', 'CIE 1976', 'Fairchild 2010', 'Fairchild 2011', 'Abebe 2017')
    v = [luminance(41.52787584465345, method, Y_n=100) for method in m]
    d_r = (('reference', 1), (1, 0.01), (100, 1))
    for (method, value) in zip(m, v):
        for (scale, factor) in d_r:
            with domain_range_scale(scale):
                np.testing.assert_almost_equal(luminance((41.52787584465345 * factor), method, Y_n=100), (value * factor), decimal=7)
Tests :func:`colour.colorimetry.luminance.luminance` definition
domain and range scale support.
def test_domain_range_scale_luminance(self):
    '\n        Tests :func:`colour.colorimetry.luminance.luminance` definition\n        domain and range scale support.\n        '
    m = ('Newhall 1943', 'ASTM D1535', 'CIE 1976', 'Fairchild 2010', 'Fairchild 2011', 'Abebe 2017')
    v = [luminance(41.52787584465345, method, Y_n=100) for method in m]
    d_r = (('reference', 1), (1, 0.01), (100, 1))
    for (method, value) in zip(m, v):
        for (scale, factor) in d_r:
            with domain_range_scale(scale):
                np.testing.assert_almost_equal(luminance((41.52787584465345 * factor), method, Y_n=100), (value * factor), decimal=7)