def test_decimal_nan(self): x = Decimal('Nan') self.assertEqual(x.compare_total(self.dump_and_load(x)), Decimal('0'))
def test_decimal_inf(self): x = Decimal('Infinity') self.assertEqual(x.compare_total(self.dump_and_load(x)), Decimal('0'))