Adventurer: Interactive Testing

Interactive testing for your Adventurer class.

$ python3
>>> from adventurer import *
>>> rich = Adventurer("Rich", "doing the crossword", "pizza", "pens")
>>> rich
<adventurer.Adventurer object at 0x102f52b60>
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 0)
Favorite food: pizza (Amount eaten: 0)
Favorite equipment: pens (Number owned: 0)
>>> print(rich.status())
Rich is hungry, wants to be doing the crossword, and could use some pens.
>>> rich.eat()
Rich ate some pizza.
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 0)
Favorite food: pizza (Amount eaten: 1)
Favorite equipment: pens (Number owned: 0)
>>> rich.get_name()
'Rich'
>>> print(rich.status())
Rich is well-fed, wants to be doing the crossword, and could use some pens.
>>> rich.eat()
Rich ate some pizza.
>>> print(rich.status())
Rich is over-fed, wants to be doing the crossword, and could use some pens.
>>> rich.eat()
Rich has already eaten too much pizza!
>>> rich.quest()
Rich is doing the crossword!!
>>> print(rich.status())
Rich is well-fed, contented, and could use some pens.
>>> rich.quest()
Rich is doing the crossword!!
>>> print(rich.status())
Rich is hungry, overjoyed, and could use some pens.
>>> rich.eat()
Rich ate some pizza.
>>> rich.shop()
Rich bought pens.
>>> print(rich.status())
Rich is well-fed, overjoyed, and has some pens.
>>> rich.shop()
Rich bought pens.
>>> print(rich.status())
Rich is well-fed, overjoyed, and has some pens.
>>> rich.shop()
Rich bought pens.
>>> print(rich.status())
Rich is well-fed, overjoyed, and has loads of pens.
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 2)
Favorite food: pizza (Amount eaten: 1)
Favorite equipment: pens (Number owned: 3)
>>> rich.eat()
Rich ate some pizza.
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 2)
Favorite food: pizza (Amount eaten: 2)
Favorite equipment: pens (Number owned: 3)
>>> rich.eat()
Rich has already eaten too much pizza!
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 2)
Favorite food: pizza (Amount eaten: 2)
Favorite equipment: pens (Number owned: 3)
>>> rich.quest()
Rich is doing the crossword!!
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 3)
Favorite food: pizza (Amount eaten: 1)
Favorite equipment: pens (Number owned: 3)
>>> rich.rest()
Rich is resting.
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 2)
Favorite food: pizza (Amount eaten: 0)
Favorite equipment: pens (Number owned: 3)
>>> print(rich.status())
Rich is hungry, overjoyed, and has loads of pens.
>>> rich.rest()
Rich is resting.
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 1)
Favorite food: pizza (Amount eaten: 0)
Favorite equipment: pens (Number owned: 3)
>>> rich.rest()
Rich is resting.
>>> print(rich)
Name: Rich
Favorite quest: doing the crossword (Number of quests: 0)
Favorite food: pizza (Amount eaten: 0)
Favorite equipment: pens (Number owned: 3)
>>> print(rich.status())
Rich is hungry, wants to be doing the crossword, and has loads of pens.