#NEWLINE# @ patch_object ( Git , '_call_process' ) #NEWLINE# def test_should_return_file_size( self , git ) : #NEWLINE# #INDENT# git . return_value = fixture ( 'cat_file_blob_size' ) #NEWLINE# blob = Blob ( self . repo , ** { #NEWLINE# #INDENT# 'id' : 'abc' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( 11 , blob . size ) #NEWLINE# assert_true ( git . called ) #NEWLINE# assert_equal ( git . call_args , ( ( 'cat_file' , 'abc' ) , { #NEWLINE# #INDENT# 's' : True , #NEWLINE# #UNINDENT# } ) )