Example #1
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 #2
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 #3
0
def test_parse_range_str_empty():
    start, count = diffparse.parse_range_str('0,0')
    assert start == 0
    assert count == 0
Example #4
0
 def test_parse_range_str(self):
     start, count = diffparse.parse_range_str('1,2')
     self.assertEqual(start, 1)
     self.assertEqual(count, 2)
Example #5
0
def test_parse_range_str_single_line():
    start, count = diffparse.parse_range_str('2')
    assert start == 2
    assert count == 1
Example #6
0
def test_parse_range_str():
    start, count = diffparse.parse_range_str('1,2')
    assert start == 1
    assert count == 2
Example #7
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 #8
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 #9
0
 def test_parse_range_str(self):
     start, count = diffparse.parse_range_str('1,2')
     self.assertEqual(start, 1)
     self.assertEqual(count, 2)