File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/bugtrace/patch.py b/bugtrace/patch.py
2
+ index 18910dfd..2456e34f 100644
3
+ --- a/bugtrace/patch.py
4
+ +++ b/bugtrace/patch.py
5
+ @@ -8,20 +8,30 @@
6
+
Original file line number Diff line number Diff line change @@ -603,6 +603,23 @@ def test_git_header(self):
603
603
results_main = wtp .patch .parse_header (text )
604
604
self .assertEqual (results_main , expected )
605
605
606
+ def test_git_header_long (self ):
607
+ with open ('tests/casefiles/git-header-long.diff' ) as f :
608
+ text = f .read ()
609
+
610
+ expected = wtp .patch .header (
611
+ index_path = None ,
612
+ old_path = 'bugtrace/patch.py' ,
613
+ old_version = '18910dfd' ,
614
+ new_path = 'bugtrace/patch.py' ,
615
+ new_version = '2456e34f' )
616
+
617
+ results = wtp .patch .parse_git_header (text )
618
+ self .assertEqual (results , expected )
619
+
620
+ results_main = wtp .patch .parse_header (text )
621
+ self .assertEqual (results_main , expected )
622
+
606
623
def test_svn_header (self ):
607
624
with open ('tests/casefiles/svn-header.diff' ) as f :
608
625
text = f .read ()
You can’t perform that action at this time.
0 commit comments