def test_division(self):
        if do_minimal_checks: return
        if do_all_checks:
            digits = range(1, MAXDIGITS+1) + \
                     range(KARATSUBA_CUTOFF, KARATSUBA_CUTOFF + 14)
        else:
            digits = [1, 2, int(MAXDIGITS/3), 2 * int(MAXDIGITS/3),
                      MAXDIGITS-1, MAXDIGITS, MAXDIGITS+2,
                      KARATSUBA_CUTOFF, KARATSUBA_CUTOFF + 14]
        digits.append(KARATSUBA_CUTOFF * 3)
        for lenx in digits:
            x = self.getran(lenx)
            for leny in digits:
                #y = self.getran(leny) or 1L
                y = self.getran(leny)
                if y == 0L: y = 1L
                self.check_division(x, y)
dataset/ETHPy150Open anandology/pyjamas/examples/libtest/LongTypeTest.py/LongTypeTest.test_division/original