Ejemplo n.º 1
0
def test_not_connected_place_test():
    game = Game()
    game.load("games/DemoGame.xml")
    assert game.goto("town") == "Cannot go to town"
Ejemplo n.º 2
0
def test_search_place_empty():
    game = Game()
    game.load("games/SearchTest.xml")
    game.goto("sea")
    assert game.search() == "Found nothing"
Ejemplo n.º 3
0
def test_not_place_test():
    game = Game()
    game.load("games/DemoGame.xml")
    assert game.goto("hell") == "Cannot go to hell"
Ejemplo n.º 4
0
def test_basic_go_test():
    game = Game()
    game.load("games/DemoGame.xml")
    assert game.goto("sEa") == "You go to sEa"