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

Method test_is_normal

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

Source from the content-addressed store, hash-verified

3288 self.assertRaises(TypeError, c.is_nan, '10')
3289
3290 def test_is_normal(self):
3291 Decimal = self.decimal.Decimal
3292 Context = self.decimal.Context
3293
3294 c = Context()
3295 d = c.is_normal(Decimal(10))
3296 self.assertEqual(c.is_normal(10), d)
3297 self.assertRaises(TypeError, c.is_normal, '10')
3298
3299 def test_is_qnan(self):
3300 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected