(self)
| 3056 | self.assertNotIn(Decimal(10), ['a', 1.0, (1,2), {}]) |
| 3057 | |
| 3058 | def test_copy(self): |
| 3059 | # All copies should be deep |
| 3060 | Decimal = self.decimal.Decimal |
| 3061 | Context = self.decimal.Context |
| 3062 | |
| 3063 | c = Context() |
| 3064 | d = c.copy() |
| 3065 | self.assertNotEqual(id(c), id(d)) |
| 3066 | self.assertNotEqual(id(c.flags), id(d.flags)) |
| 3067 | self.assertNotEqual(id(c.traps), id(d.traps)) |
| 3068 | k1 = set(c.flags.keys()) |
| 3069 | k2 = set(d.flags.keys()) |
| 3070 | self.assertEqual(k1, k2) |
| 3071 | self.assertEqual(c.flags, d.flags) |
| 3072 | |
| 3073 | def test__clamp(self): |
| 3074 | # In Python 3.2, the private attribute `_clamp` was made |
nothing calls this directly
no test coverage detected