def testInitFromDecimal(self):
    self.assertEqual((11, 10), _components(F(Decimal('1.1'))))
    self.assertEqual((7, 200), _components(F(Decimal('3.5e-2'))))
    self.assertEqual((0, 1), _components(F(Decimal('.000e20'))))
    self.assertRaises(ValueError, F, Decimal('nan'))
    self.assertRaises(ValueError, F, Decimal('snan'))
    self.assertRaises(OverflowError, F, Decimal('inf'))
    self.assertRaises(OverflowError, F, Decimal('-inf'))
def testInitFromDecimal(self):
    self.assertEqual((11, 10), _components(F(Decimal('1.1'))))
    self.assertEqual((7, 200), _components(F(Decimal('3.5e-2'))))
    self.assertEqual((0, 1), _components(F(Decimal('.000e20'))))
    self.assertRaises(ValueError, F, Decimal('nan'))
    self.assertRaises(ValueError, F, Decimal('snan'))
    self.assertRaises(OverflowError, F, Decimal('inf'))
    self.assertRaises(OverflowError, F, Decimal('-inf'))