Lines Matching refs:divmod
651 self.assertEqual(divmod(E(), Decimal(10)), 'divmod 10')
652 self.assertEqual(divmod(Decimal(10), E()), '10 rdivmod')
1125 (p, q) = divmod(d1, d2)
1132 (p, q) = divmod(d1, 4)
1139 (p, q) = divmod(7, d1)
1890 d = c.divmod(Decimal(1), Decimal(2))
1891 self.assertEqual(c.divmod(1, 2), d)
1892 self.assertEqual(c.divmod(Decimal(1), 2), d)
1893 self.assertEqual(c.divmod(1, Decimal(2)), d)
1894 self.assertRaises(TypeError, c.divmod, '1', 2)
1895 self.assertRaises(TypeError, c.divmod, 1, '2')