MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / assertEqualPrimary

Function assertEqualPrimary

tests/python/UnitTestUtils.py:13–26  ·  view source on GitHub ↗
(testCase, first, second)

Source from the content-addressed store, hash-verified

11 testCase.assertEqual(first.master, second.master)
12
13def assertEqualPrimary(testCase, first, second):
14 assertEqualRGBM(testCase, first.brightness, second.brightness)
15 assertEqualRGBM(testCase, first.contrast, second.contrast)
16 assertEqualRGBM(testCase, first.gamma, second.gamma)
17 assertEqualRGBM(testCase, first.offset, second.offset)
18 assertEqualRGBM(testCase, first.exposure, second.exposure)
19 assertEqualRGBM(testCase, first.lift, second.lift)
20 assertEqualRGBM(testCase, first.gain, second.gain)
21 testCase.assertEqual(first.pivot, second.pivot)
22 testCase.assertEqual(first.saturation, second.saturation)
23 testCase.assertEqual(first.clampWhite, second.clampWhite)
24 testCase.assertEqual(first.clampBlack, second.clampBlack)
25 testCase.assertEqual(first.pivotWhite, second.pivotWhite)
26 testCase.assertEqual(first.pivotBlack, second.pivotBlack)
27
28def assertEqualRGBMSW(testCase, first, second):
29 testCase.assertEqual(first.red, second.red)

Callers 3

test_primaryMethod · 0.90
test_contructorMethod · 0.90
test_valuesMethod · 0.90

Calls 1

assertEqualRGBMFunction · 0.85

Tested by

no test coverage detected