Test the setDescription() and getDescription() methods.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected