Example #1
0
 def test_parse_range_str_empty(self):
     start, count = diffparse._parse_range_str('0,0')
     self.assertEqual(start, 0)
     self.assertEqual(count, 0)
Example #2
0
 def test_parse_range_str_single_line(self):
     start, count = diffparse._parse_range_str('2')
     self.assertEqual(start, 2)
     self.assertEqual(count, 1)
Example #3
0
 def test_parse_range_str(self):
     start, count = diffparse._parse_range_str('1,2')
     self.assertEqual(start, 1)
     self.assertEqual(count, 2)
Example #4
0
 def test_parse_range_str_empty(self):
     start, count = _parse_range_str('0,0')
     self.assertEqual(start, 0)
     self.assertEqual(count, 0)
Example #5
0
 def test_parse_range_str_single_line(self):
     start, count = _parse_range_str('2')
     self.assertEqual(start, 2)
     self.assertEqual(count, 1)
Example #6
0
 def test_parse_range_str(self):
     start, count = _parse_range_str('1,2')
     self.assertEqual(start, 1)
     self.assertEqual(count, 2)