@@ -387,24 +387,26 @@ def test_blame_real(self):
387
387
388
388
@patch .object (Git ,'_call_process' )
389
389
def test_blame_incremental (self ,git ):
390
- git .return_value = fixture ('blame_incremental' )
391
- blame_output = self .rorepo .blame_incremental ('9debf6b0aafb6f7781ea9d1383c86939a1aacde3' ,'AUTHORS' )
392
- blame_output = list (blame_output )
393
- self .assertEqual (len (blame_output ),5 )
394
-
395
- # Check all outputted line numbers
396
- ranges = flatten ([entry .linenos for entry in blame_output ])
397
- self .assertEqual (ranges ,flatten ([range (2 ,3 ),range (14 ,15 ),range (1 ,2 ),range (3 ,14 ),range (15 ,17 )]))
398
-
399
- commits = [entry .commit .hexsha [:7 ]for entry in blame_output ]
400
- self .assertEqual (commits , ['82b8902' ,'82b8902' ,'c76852d' ,'c76852d' ,'c76852d' ])
401
-
402
- # Original filenames
403
- self .assertSequenceEqual ([entry .orig_path for entry in blame_output ], [u'AUTHORS' ]* len (blame_output ))
404
-
405
- # Original line numbers
406
- orig_ranges = flatten ([entry .orig_linenos for entry in blame_output ])
407
- self .assertEqual (orig_ranges ,flatten ([range (2 ,3 ),range (14 ,15 ),range (1 ,2 ),range (2 ,13 ),range (13 ,15 )]))# noqa E501
390
+ # loop over two fixtures, create a test fixture for 2.11.1+ syntax
391
+ for git_fixture in ('blame_incremental' ,'blame_incremental_2.11.1_plus' ):
392
+ git .return_value = fixture (git_fixture )
393
+ blame_output = self .rorepo .blame_incremental ('9debf6b0aafb6f7781ea9d1383c86939a1aacde3' ,'AUTHORS' )
394
+ blame_output = list (blame_output )
395
+ self .assertEqual (len (blame_output ),5 )
396
+
397
+ # Check all outputted line numbers
398
+ ranges = flatten ([entry .linenos for entry in blame_output ])
399
+ self .assertEqual (ranges ,flatten ([range (2 ,3 ),range (14 ,15 ),range (1 ,2 ),range (3 ,14 ),range (15 ,17 )]))
400
+
401
+ commits = [entry .commit .hexsha [:7 ]for entry in blame_output ]
402
+ self .assertEqual (commits , ['82b8902' ,'82b8902' ,'c76852d' ,'c76852d' ,'c76852d' ])
403
+
404
+ # Original filenames
405
+ self .assertSequenceEqual ([entry .orig_path for entry in blame_output ], [u'AUTHORS' ]* len (blame_output ))
406
+
407
+ # Original line numbers
408
+ orig_ranges = flatten ([entry .orig_linenos for entry in blame_output ])
409
+ self .assertEqual (orig_ranges ,flatten ([range (2 ,3 ),range (14 ,15 ),range (1 ,2 ),range (2 ,13 ),range (13 ,15 )]))# noqa E501
408
410
409
411
@patch .object (Git ,'_call_process' )
410
412
def test_blame_complex_revision (self ,git ):