def fall(self): my_worm = Worm() is_good_day = my_worm.crawl() if is_good_day: print("Grapefruits fall like any other fruit.") else: print("Wormy grapefruits are yucky!") return is_good_day
def fall(self): my_worm = Worm() is_good_day = my_worm.crawl() if is_good_day: print "Messy juicy goodness in a vacuum falls the same " \ "as an apple in a vacuum" else: print("Worms in a Pomelo are nasty") return is_good_day
def fall(self): my_worm = Worm() is_good_day = my_worm.crawl() if is_good_day: print "Sum of the forces equals the change in" \ " momentum of the system. Just ask your Granny." else: print "Any worm in my apple should at least be a happy worm. " \ "Time for granny smith apple beer!" return is_good_day
def fall(self): my_worm = Worm() is_good_day = my_worm.crawl() if is_good_day: print "Sum of the forces equals the " \ "change in momentum of the system" else: print "Any worm in my apple should at least be a happy worm. " \ "Time for beer!" return is_good_day
def crawl_test(): my_worm = Worm() did_it_crawl = my_worm.crawl() assert did_it_crawl, "Worm thinks it is a good day for crawling"