def test_parse_range_str_single_line(self): start, count = diffparse.parse_range_str('2') self.assertEqual(start, 2) self.assertEqual(count, 1)
def test_parse_range_str_empty(self): start, count = diffparse.parse_range_str('0,0') self.assertEqual(start, 0) self.assertEqual(count, 0)
def test_parse_range_str_empty(): start, count = diffparse.parse_range_str('0,0') assert start == 0 assert count == 0
def test_parse_range_str(self): start, count = diffparse.parse_range_str('1,2') self.assertEqual(start, 1) self.assertEqual(count, 2)
def test_parse_range_str_single_line(): start, count = diffparse.parse_range_str('2') assert start == 2 assert count == 1
def test_parse_range_str(): start, count = diffparse.parse_range_str('1,2') assert start == 1 assert count == 2
def test_parse_range_str_empty(self): start, count = diffparse.parse_range_str('0,0') self.assertEqual(start, 0) self.assertEqual(count, 0)
def test_parse_range_str_single_line(self): start, count = diffparse.parse_range_str('2') self.assertEqual(start, 2) self.assertEqual(count, 1)
def test_parse_range_str(self): start, count = diffparse.parse_range_str('1,2') self.assertEqual(start, 1) self.assertEqual(count, 2)