(self)
| 34 | self.assertEqual(str(ex), msg) |
| 35 | |
| 36 | def test_implicit_message(self): |
| 37 | try: |
| 38 | raise DNSException() |
| 39 | except DNSException as ex: |
| 40 | self.assertEqual(ex.__class__.__doc__, str(ex)) |
| 41 | |
| 42 | def test_formatted_error(self): |
| 43 | """Exceptions with explicit format has to respect it.""" |
nothing calls this directly
no test coverage detected