

def test_extended_getslice(self):
    t = time.gmtime()
    L = list(t)
    indices = (0, None, 1, 3, 19, 300, (- 1), (- 2), (- 31), (- 300))
    for start in indices:
        for stop in indices:
            for step in indices[1:]:
                self.assertEqual(list(t[start:stop:step]), L[start:stop:step])

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_structseq.py StructSeqTest.test_extended_getslice/original