Example #1
0
 def test_ranges(self):
     assert_equal([100, 4, 5, 6, 8, 10, 12, 13],
                  spead2.parse_range_list('100,4-6,8,10-10,12-13'))
Example #2
0
 def test_empty(self):
     assert_equal([], spead2.parse_range_list(''))
Example #3
0
 def test_simple(self):
     assert_equal([1, 2, 5], spead2.parse_range_list('1,2,5'))
Example #4
0
 def test_ranges(self):
     assert spead2.parse_range_list('100,4-6,8,10-10,12-13') == [100, 4, 5, 6, 8, 10, 12, 13]
Example #5
0
 def test_simple(self):
     assert spead2.parse_range_list('1,2,5') == [1, 2, 5]
Example #6
0
 def test_empty(self):
     assert spead2.parse_range_list('') == []
Example #7
0
 def test_simple(self):
     assert_equal([1, 2, 5], spead2.parse_range_list('1,2,5'))
Example #8
0
 def test_empty(self):
     assert_equal([], spead2.parse_range_list(''))