4141 TestBase ,
4242 with_rw_repo ,
4343 fixture ,
44- assert_false ,
45- assert_true
44+ assert_false
4645)
4746from git .util import HIDE_WINDOWS_KNOWN_ERRORS , cygpath
4847from git .test .lib import with_rw_directory
@@ -243,12 +242,12 @@ def test_clone_from_with_path_contains_unicode(self):
243242
244243 @with_rw_repo ('HEAD' )
245244 def test_max_chunk_size (self , repo ):
246- class TestOutputStream (object ):
245+ class TestOutputStream (TestBase ):
247246 def __init__ (self , max_chunk_size ):
248247 self .max_chunk_size = max_chunk_size
249248
250249 def write (self , b ):
251- assert_true (len (b ) <= self .max_chunk_size )
250+ self . assertTrue (len (b ) <= self .max_chunk_size )
252251
253252 for chunk_size in [16 , 128 , 1024 ]:
254253 repo .git .status (output_stream = TestOutputStream (chunk_size ), max_chunk_size = chunk_size )
@@ -404,7 +403,7 @@ def test_should_display_blame_information(self, git):
404403 # self.assertEqual(25, reduce(lambda acc, x: acc + len(x[-1]), b))
405404 self .assertEqual (hash (b [0 ][0 ]), hash (b [9 ][0 ]))
406405 c = b [0 ][0 ]
407- assert_true (git .called )
406+ self . assertTrue (git .called )
408407
409408 self .assertEqual ('634396b2f541a9f2d58b00be1a07f0c358b999b3' , c .hexsha )
410409 self .assertEqual ('Tom Preston-Werner' , c .author .name )
@@ -417,9 +416,9 @@ def test_should_display_blame_information(self, git):
417416
418417 # test the 'lines per commit' entries
419418 tlist = b [0 ][1 ]
420- assert_true (tlist )
421- assert_true (isinstance (tlist [0 ], str ))
422- assert_true (len (tlist ) < sum (len (t ) for t in tlist )) # test for single-char bug
419+ self . assertTrue (tlist )
420+ self . assertTrue (isinstance (tlist [0 ], str ))
421+ self . assertTrue (len (tlist ) < sum (len (t ) for t in tlist )) # test for single-char bug
423422
424423 # BINARY BLAME
425424 git .return_value = fixture ('blame_binary' )
0 commit comments