Example #1
0
 def test_generate_range_invalid(self):
     self.assertEqual(list(generate._generate_range('D7-H.1.0.0')),
                      ['D7-H.1.0.0'])
Example #2
0
 def test_generate_range_colon(self):
     self.assertEqual(list(generate._generate_range('1-3:10-12')),
                      ['1', '2', '3', '10', '11', '12'])
Example #3
0
 def test_generate_range_colon_reverse(self):
     self.assertEqual(list(generate._generate_range('100-100:94-90')),
                      ['100', '94', '93', '92', '91', '90'])
Example #4
0
 def test_generate_range(self):
     self.assertEqual(list(generate._generate_range('10-12')),
                      ['10', '11', '12'])
Example #5
0
 def test_generate_range_zero(self):
     self.assertEqual(list(generate._generate_range('001-003')),
                      ['001', '002', '003'])
Example #6
0
 def test_generate_range_invalid(self):
     self.assertEqual(list(generate._generate_range('D7-H.1.0.0')),
                      ['D7-H.1.0.0'])
Example #7
0
 def test_generate_range_colon_reverse(self):
     self.assertEqual(list(generate._generate_range('100-100:94-90')),
                      ['100', '94', '93', '92', '91', '90'])
Example #8
0
 def test_generate_range_colon(self):
     self.assertEqual(list(generate._generate_range('1-3:10-12')),
                      ['1', '2', '3', '10', '11', '12'])
Example #9
0
 def test_generate_range_zero(self):
     self.assertEqual(list(generate._generate_range('001-003')),
                      ['001', '002', '003'])
Example #10
0
 def test_generate_range(self):
     self.assertEqual(list(generate._generate_range('10-12')),
                      ['10', '11', '12'])