#NEWLINE# def test_with_diff( self ) : #NEWLINE# #INDENT# with mock . patch ( 'changes.models.Project.get_config' ) as mocked : #NEWLINE# #INDENT# mocked . return_value = { #NEWLINE# #INDENT# 'build.file-blacklist' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# assert files_changed_should_trigger_project ( [ 'a' , 'b' , 'y/a.txt' ] , self . project , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , self . revision . sha , self . patch . diff ) #NEWLINE# ( ( sha , diff , _ ) , _ ) = mocked . call_args #NEWLINE# assert ( sha == self . revision . sha )