結果 : python test if method was called