(self)
| 1991 | self.assertEqual(hashit(Decimal(x)), hashit(x)) |
| 1992 | |
| 1993 | def test_hash_method_nan(self): |
| 1994 | Decimal = self.decimal.Decimal |
| 1995 | self.assertRaises(TypeError, hash, Decimal('sNaN')) |
| 1996 | value = Decimal('NaN') |
| 1997 | self.assertEqual(hash(value), object.__hash__(value)) |
| 1998 | class H: |
| 1999 | def __hash__(self): |
| 2000 | return 42 |
| 2001 | class D(Decimal, H): |
| 2002 | pass |
| 2003 | value = D('NaN') |
| 2004 | self.assertEqual(hash(value), object.__hash__(value)) |
| 2005 | |
| 2006 | def test_min_and_max_methods(self): |
| 2007 | Decimal = self.decimal.Decimal |
nothing calls this directly
no test coverage detected