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

Method test_sub

tests/test_serial.py:67–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 self.assertEqual(v, 255)
66
67 def test_sub(self):
68 self.assertEqual(S8(0) - S8(1), S8(255))
69
70 def test_addition_bounds(self):
71 self.assertRaises(ValueError, lambda: S8(0) + 128)

Callers

nothing calls this directly

Calls 1

S8Function · 0.85

Tested by

no test coverage detected