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

Method test_kwargs_only

tests/test_exceptions.py:51–54  ·  view source on GitHub ↗

Kwargs cannot be combined with args.

(self)

Source from the content-addressed store, hash-verified

49 self.assertEqual(msg, str(ex))
50
51 def test_kwargs_only(self):
52 """Kwargs cannot be combined with args."""
53 with self.assertRaises(AssertionError):
54 raise FormatedError(1, a=2)
55
56 def test_kwargs_unsupported(self):
57 """Only supported kwargs are accepted."""

Callers

nothing calls this directly

Calls 1

FormatedErrorClass · 0.85

Tested by

no test coverage detected