MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_logical_invert

Method test_logical_invert

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

Source from the content-addressed store, hash-verified

3386 self.assertRaises(TypeError, c.logical_and, 1, '1')
3387
3388 def test_logical_invert(self):
3389 Decimal = self.decimal.Decimal
3390 Context = self.decimal.Context
3391
3392 c = Context()
3393 d = c.logical_invert(Decimal(1000))
3394 self.assertEqual(c.logical_invert(1000), d)
3395 self.assertRaises(TypeError, c.logical_invert, '1000')
3396
3397 def test_logical_or(self):
3398 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