Exemple #1
0
 def test_range_1_4(self):
     r = '1-4'
     r_list = hwprobe.parse_range(r)
     self.assertEquals([1, 2, 3, 4], r_list)
Exemple #2
0
 def test_single(self):
     r = '1'
     r_list = hwprobe.parse_range(r)
     self.assertEquals([1], r_list)