(self)
| 3139 | self.assertRaises(TypeError, c.compare_total, 1, '1') |
| 3140 | |
| 3141 | def test_compare_total_mag(self): |
| 3142 | Decimal = self.decimal.Decimal |
| 3143 | Context = self.decimal.Context |
| 3144 | |
| 3145 | c = Context() |
| 3146 | d = c.compare_total_mag(Decimal(1), Decimal(1)) |
| 3147 | self.assertEqual(c.compare_total_mag(1, 1), d) |
| 3148 | self.assertEqual(c.compare_total_mag(Decimal(1), 1), d) |
| 3149 | self.assertEqual(c.compare_total_mag(1, Decimal(1)), d) |
| 3150 | self.assertRaises(TypeError, c.compare_total_mag, '1', 1) |
| 3151 | self.assertRaises(TypeError, c.compare_total_mag, 1, '1') |
| 3152 | |
| 3153 | def test_copy_abs(self): |
| 3154 | Decimal = self.decimal.Decimal |
nothing calls this directly
no test coverage detected