Esempio n. 1
0
def test_take_mat_go_north_then_drop_mat():
    adventure = Adventure()
    adventure.take(['mat'])
    adventure.go_north([])
    adventure.drop(['mat'])
    assert (adventure.current_room.description == """**North of House**
You are facing the north side of a white house.  There is no door here, and all the windows are barred.
There is a welcome mat here.""")
Esempio n. 2
0
def test_go_north_then_west_of_house():
    adventure = Adventure()
    adventure.go_north([])
    adventure.go_west([])
    assert(adventure.current_room.title == "West of House")
Esempio n. 3
0
def test_go_north_of_house():
    adventure = Adventure()
    assert(adventure.go_north([]) == """**North of House**
You are facing the north side of a white house.  There is no door here, and all the windows are barred.""")
    assert(adventure.current_room.title == "North of House")