Method Inside Class Python Definition Functional Testing