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

Method test_process_space

tests/python/LookTest.py:64–79  ·  view source on GitHub ↗

Test the setProcessSpace() and getProcessName() methods.

(self)

Source from the content-addressed store, hash-verified

62 self.look.setName(invalid)
63
64 def test_process_space(self):
65 """
66 Test the setProcessSpace() and getProcessName() methods.
67 """
68
69 # Default initialized process space value is ""
70 self.assertEqual(self.look.getProcessSpace(), '')
71
72 for process_space in self.TEST_PROCESS_SPACES:
73 self.look.setProcessSpace(process_space)
74 self.assertEqual(process_space, self.look.getProcessSpace())
75
76 # Wrong type tests.
77 for invalid in (None, 1):
78 with self.assertRaises(TypeError):
79 self.look.setProcessSpace(invalid)
80
81 def test_description(self):
82 """

Callers

nothing calls this directly

Calls 2

getProcessSpaceMethod · 0.45
setProcessSpaceMethod · 0.45

Tested by

no test coverage detected