MCPcopy Create free account
hub / github.com/rthalley/dnspython / test_implicit_message

Method test_implicit_message

tests/test_exceptions.py:36–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

DNSExceptionClass · 0.90

Tested by

no test coverage detected