MCPcopy Index your code
hub / github.com/python/cpython / test_logical_invert

Method test_logical_invert

Lib/test/test_decimal.py:3383–3390  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3381 self.assertRaises(TypeError, c.logical_and, 1, '1')
3382
3383 def test_logical_invert(self):
3384 Decimal = self.decimal.Decimal
3385 Context = self.decimal.Context
3386
3387 c = Context()
3388 d = c.logical_invert(Decimal(1000))
3389 self.assertEqual(c.logical_invert(1000), d)
3390 self.assertRaises(TypeError, c.logical_invert, '1000')
3391
3392 def test_logical_or(self):
3393 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

logical_invertMethod · 0.95
DecimalClass · 0.85
ContextClass · 0.70
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected