Beispiel #1
0
def test_a_werewolf_who_has_consumed_a_victim_is_no_longer_hungry():
    human = Victim()
    werewolf = Werewolf("David","London", human_state=False, hungry=True)

    assert werewolf.is_hungry()
    werewolf.consume(human)
    assert not werewolf.is_hungry()
Beispiel #2
0
def test_becomes_hungry_after_changing_to_a_werewolf():
    werewolf = Werewolf("David","London")
    assert not werewolf.is_hungry()
    werewolf.change()
    assert werewolf.is_hungry()
Beispiel #3
0
def test_is_not_hungry_by_default():
    werewolf = Werewolf("David","London")
    assert not werewolf.is_hungry()