def test_becomes_rested_after_drinking_a_potion(self):
     centaur = Centaur("George", "Palomino")
     centaur.shoot()
     centaur.run()
     centaur.shoot()
     assert centaur.is_cranky, True
     centaur.drinks_potion()
     assert centaur.is_cranky, False
    def test_cranky_after_three_bow_shoot(self):
        centaur = Centaur("George", "Palomino")

        assert not centaur.is_cranky, True
        centaur.shoot()
        centaur.shoot()
        centaur.shoot()
        assert centaur.is_cranky, True
 def test_it_can_stand_up(self):
     centaur = Centaur("George", "Palomino")
     centaur.lay_down()
     centaur.stand_up()
     assert centaur.is_standing, True
 def test_when_laying_down_it_cannot_run(self):
     centaur = Centaur("George", "Palomino")
     centaur.lay_down()
     assert centaur.run(), "NO!"
 def test_it_can_sleep_when_laying_down(self):
     centaur = Centaur("George", "Palomino")
     centaur.lay_down()
     assert centaur.sleep(), "Zzzzzzz"
 def test_after_laying_down_it_is_not_standing(self):
     centaur = Centaur("George", "Palomino")
     centaur.lay_down()
     assert not centaur.is_standing, True
     assert centaur.is_laying, True
 def test_when_standing_it_will_not_sleep(self):
     centaur = Centaur("George", "Palomino")
     assert centaur.sleep(), "NO!"
 def test_when_cranky_it_will_not_run(self):
     centaur = Centaur("George", "Palomino")
     centaur.shoot()
     centaur.shoot()
     centaur.shoot()
     assert centaur.run(), "NO!"
 def test_can_only_drink_potion_while_standing(self):
     centaur = Centaur("George", "Palomino")
     centaur.lay_down()
     assert centaur.drinks_potion(), "NO!"
 def test_standing_when_created(self):
     centaur = Centaur("George", "Palomino")
     assert centaur.is_standing, True
 def test_not_cranky(self):
     centaur = Centaur("George", "Palomino")
     assert not centaur.is_cranky, True
 def test_breed(self):
     centaur = Centaur("Bob", "Pony")
     assert centaur.breed, "Pony"
 def test_name(self):
     centaur = Centaur("Bob", "Pony")
     assert centaur.name, "Bob"
 def test_gets_sick_if_drinks_potion_while_rested(self):
     centaur = Centaur("George", "Palomino")
     centaur.lay_down()
     centaur.sleep()
     centaur.stand_up()
     assert centaur.drinks_potion(), "*HURL*"
 def test_shoot(self):
     centaur = Centaur("Bob", "Pony")
     assert centaur.shoot(), "Twang!!!"
    def test_after_sleeping_it_is_no_longer_cranky(self):
        centaur = Centaur("George", "Palomino")

        centaur.shoot()
        centaur.run()
        centaur.shoot()

        assert centaur.is_cranky, True

        centaur.lay_down()
        centaur.sleep()

        assert not centaur.is_cranky, True

        centaur.stand_up()

        assert centaur.shoot(), "Twang!!!"
        assert centaur.run(), "Clip clop clip clop"
 def test_run(self):
     centaur = Centaur("Bob", "Pony")
     assert centaur.run(), "Clip clop clip clop"