#NEWLINE# @ mock . patch . object ( workbooks . WorkbookManager , 'validate' , mock . MagicMock ( return_value = { #NEWLINE# #INDENT# 'valid' : True , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# def test_workbook_valid( self ) : #NEWLINE# #INDENT# def_yaml = self . _read_file_content ( WB_PRE_XFORM_PATH ) #NEWLINE# result = self . validator . validate ( def_yaml ) #NEWLINE# self . assertEqual ( 0 , len ( result ) )