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

Method test_description

tests/python/LookTest.py:81–96  ·  view source on GitHub ↗

Test the setDescription() and getDescription() methods.

(self)

Source from the content-addressed store, hash-verified

79 self.look.setProcessSpace(invalid)
80
81 def test_description(self):
82 """
83 Test the setDescription() and getDescription() methods.
84 """
85
86 # Default initialized description value is ""
87 self.assertEqual(self.look.getDescription(), '')
88
89 for desc in TEST_DESCS:
90 self.look.setDescription(desc)
91 self.assertEqual(desc, self.look.getDescription())
92
93 # Wrong type tests.
94 for invalid in (None, 1):
95 with self.assertRaises(TypeError):
96 self.look.setDescription(invalid)
97
98 def test_interchangeAttribute(self):
99 """

Callers

nothing calls this directly

Calls 2

getDescriptionMethod · 0.45
setDescriptionMethod · 0.45

Tested by

no test coverage detected