Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def test_parse_range_str(self):
     start, count = diffparse._parse_range_str('1,2')
     self.assertEqual(start, 1)
     self.assertEqual(count, 2)
Exemplo n.º 4
0
 def test_parse_range_str_empty(self):
     start, count = _parse_range_str('0,0')
     self.assertEqual(start, 0)
     self.assertEqual(count, 0)
Exemplo n.º 5
0
 def test_parse_range_str_single_line(self):
     start, count = _parse_range_str('2')
     self.assertEqual(start, 2)
     self.assertEqual(count, 1)
Exemplo n.º 6
0
 def test_parse_range_str(self):
     start, count = _parse_range_str('1,2')
     self.assertEqual(start, 1)
     self.assertEqual(count, 2)