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

Method test_logical_or

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

Source from the content-addressed store, hash-verified

3390 self.assertRaises(TypeError, c.logical_invert, '1000')
3391
3392 def test_logical_or(self):
3393 Decimal = self.decimal.Decimal
3394 Context = self.decimal.Context
3395
3396 c = Context()
3397 d = c.logical_or(Decimal(1), Decimal(1))
3398 self.assertEqual(c.logical_or(1, 1), d)
3399 self.assertEqual(c.logical_or(Decimal(1), 1), d)
3400 self.assertEqual(c.logical_or(1, Decimal(1)), d)
3401 self.assertRaises(TypeError, c.logical_or, '1', 1)
3402 self.assertRaises(TypeError, c.logical_or, 1, '1')
3403
3404 def test_logical_xor(self):
3405 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected