def test_fight_enemy_in_other_place():
    game = Game()
    game.load("games/FightTest.xml")
    game.fight("enemy3")
    assert game.fight("enemy3") == "There is no enemy3 to fight"
def test_fight_basic_fail():
    game = Game()
    game.load("games/FightTest.xml")
    assert game.fight("nonexistent") == "There is no nonexistent to fight"
def test_fight_dead_enemy():
    game = Game()
    game.load("games/FightTest.xml")
    game.fight("enemy1")
    assert game.fight("enemy1") == "enemy1 is already dead"
def test_fight_basic():
    game = Game()
    game.load("games/FightTest.xml")
    assert game.fight("enemy1") == "You just killed the enemy1"
def test_search_dead_enemy2():
    game = Game()
    game.load("games/SearchTest.xml")
    game.fight("Enemy2")
    assert game.search("Enemy2") == "Found nothing in Enemy2"
def test_search_dead_enemy1():
    game = Game()
    game.load("games/SearchTest.xml")
    game.fight("Enemy1")
    assert game.search("Enemy1") == "You found a ring\n"
def test_pick_up_from_dead_enemy():
    game = Game()
    game.load("games/LookTest.xml")
    game.fight("Enemy1")
    assert game.pickup("ring") == "You just picked up a ring"