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

Method test_is_zero

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

Source from the content-addressed store, hash-verified

3333 self.assertRaises(TypeError, c.is_subnormal, '10')
3334
3335 def test_is_zero(self):
3336 Decimal = self.decimal.Decimal
3337 Context = self.decimal.Context
3338
3339 c = Context()
3340 d = c.is_zero(Decimal(10))
3341 self.assertEqual(c.is_zero(10), d)
3342 self.assertRaises(TypeError, c.is_zero, '10')
3343
3344 def test_ln(self):
3345 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected