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