Python Class Internal Functionality Testing Example