(a, b, attr, context, signal=None)
| 4044 | localcontext = self.decimal.localcontext |
| 4045 | |
| 4046 | def assert_attr(a, b, attr, context, signal=None): |
| 4047 | context.clear_flags() |
| 4048 | f = getattr(a, attr) |
| 4049 | if signal == FloatOperation: |
| 4050 | self.assertRaises(signal, f, b) |
| 4051 | else: |
| 4052 | self.assertIs(f(b), True) |
| 4053 | self.assertTrue(context.flags[FloatOperation]) |
| 4054 | |
| 4055 | small_d = Decimal('0.25') |
| 4056 | big_d = Decimal('3.0') |
nothing calls this directly
no test coverage detected