def test_2d_random(self):
        # throw a bunch of different indexes at it for good measure.
        choices = map(lambda x: repr(x),range(50)) + range(50) + ['']*50
        for i in range(100):
            try:
                beg = random.choice(choices)
                end = random.choice(choices)
                step = random.choice(choices)
                beg2 = random.choice(choices)
                end2 = random.choice(choices)
                step2 = random.choice(choices)
                if step is ['0',0]:
                    step = 'None'
                if step2 in ['0',0]:
                    step2 = 'None'
                expr = 'a[%s:%s:%s,%s:%s:%s]' % (beg,end,step,beg2,end2,step2)
                self.generic_2d(expr)
            except IndexError:
                pass
dataset/ETHPy150Open scipy/scipy/scipy/weave/tests/test_size_check.py/TestDummyArrayIndexing.test_2d_random/operator `in` -> `is`