(self)
| 168 | self.assertTrue(unittest.TestCase.longMessage) |
| 169 | |
| 170 | def test_formatMsg(self): |
| 171 | self.assertEqual(self.testableFalse._formatMessage(None, "foo"), "foo") |
| 172 | self.assertEqual(self.testableFalse._formatMessage("foo", "bar"), "foo") |
| 173 | |
| 174 | self.assertEqual(self.testableTrue._formatMessage(None, "foo"), "foo") |
| 175 | self.assertEqual(self.testableTrue._formatMessage("foo", "bar"), "bar : foo") |
| 176 | |
| 177 | # This blows up if _formatMessage uses string concatenation |
| 178 | self.testableTrue._formatMessage(object(), 'foo') |
| 179 | |
| 180 | def test_formatMessage_unicode_error(self): |
| 181 | one = ''.join(chr(i) for i in range(255)) |
nothing calls this directly
no test coverage detected