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