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