Пример #1
0
def test_character_with_less_than_zero_hit_points_is_alive():
    character = Character("Jared")
    character.hit_points = -1

    assert character.isdead()
Пример #2
0
def test_character_with_positive_hit_points_is_alive():
    character = Character("Jared")
    character.hit_points = 1

    assert character.isdead() == False
Пример #3
0
def test_character_with_zero_hit_points_is_dead():
    character = Character("Jared")
    character.hit_points = 0

    assert character.isdead()