(arg, expected)
| 819 | cls = Decimal |
| 820 | |
| 821 | def check(arg, expected): |
| 822 | d = cls.from_number(arg) |
| 823 | self.assertIs(type(d), cls) |
| 824 | self.assertEqual(d, expected) |
| 825 | |
| 826 | check(314, Decimal(314)) |
| 827 | check(3.14, Decimal.from_float(3.14)) |
nothing calls this directly
no test coverage detected