#NEWLINE# @ patch_object ( Blob , 'size' ) #NEWLINE# @ patch_object ( Git , '_call_process' ) #NEWLINE# def test_dict_with_zero_length_file( self , git , blob ) : #NEWLINE# #INDENT# git . return_value = fixture ( 'ls_tree_a' ) #NEWLINE# blob . return_value = 0 #NEWLINE# tree = self . repo . tree ( 'master' ) #NEWLINE# assert_not_none ( tree [ 'README.txt' ] ) #NEWLINE# assert_equal ( '8b1e02c0fb554eed2ce2ef737a68bb369d7527df' , tree [ 'README.txt' ] . id ) #NEWLINE# assert_true ( blob . called ) #NEWLINE# assert_equal ( git . call_args , ( ( 'ls_tree' , 'master' ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) )