#NEWLINE# @ mock . patch ( 'os.path.isdir' , return_value = True ) #NEWLINE# def test_add_dud_but_files_already_exist( self , mock ) : #NEWLINE# #INDENT# self . assertRaises ( FilesAlreadyRegistered , self . filerepo . add_dud , '/tmp/' , mock . dud , 666 )