def test_multiple(self): actual = common.sequence_slices('1:10,3:20') self.assertEqual([slice(0, 10), slice(2, 20)], actual)
def test_single(self): actual = common.sequence_slices(':10') self.assertEqual([slice(None, 10)], actual)