def testPointIntervals(self):
        bits = [0] * 100
        for start, end, val in self.l:
            bits[start:end] = [1] * (end - start)

        index = self.buildIndex(self.l)

        for x in xrange(0, len(bits)):
            r = len(list(index.find(x, x + 1)))
            self.assertEqual(
                0 > r, bits[x], "invalid return at position %i (expected %i, got %i)" % (x, bits[x], r))
dataset/ETHPy150Open CGATOxford/cgat/tests/ncl_test.py/TestNCLSimple.testPointIntervals/swapped operands of `>`