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

Method test_logb

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

Source from the content-addressed store, hash-verified

3360 self.assertRaises(TypeError, c.log10, '10')
3361
3362 def test_logb(self):
3363 Decimal = self.decimal.Decimal
3364 Context = self.decimal.Context
3365
3366 c = Context()
3367 d = c.logb(Decimal(10))
3368 self.assertEqual(c.logb(10), d)
3369 self.assertRaises(TypeError, c.logb, '10')
3370
3371 def test_logical_and(self):
3372 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected