Ejemplo n.º 1
0
def test_correct_exit_2_3():
    # to test in case of correct exit
    assert engine.if_exit(
        "2",
        "E") == ('You are standing in the balcony attached to the hallway.',
                 '5')
Ejemplo n.º 2
0
def test_correct_exit_2_1():
    # to test in case of correct exit
    assert engine.if_exit("2", "S") == (
        'You are standing in a connecting hallway. Three doors await you.',
        '6')
Ejemplo n.º 3
0
def test_correct_exit_2_2():
    # to test in case of correct exit
    assert engine.if_exit("2", "N") == (
        'Your are standing in what seems to be a bedroom. It has got a balcony attached.',
        '3')
Ejemplo n.º 4
0
def test_correct_exit_1_3():
    # to test in case of correct exit
    assert engine.if_exit("1", "E") == (
        'You are standing in what seems to be a hall way connecting many room.',
        '2')
Ejemplo n.º 5
0
def test_correct_exit_1_4():
    # to test in case of correct exit
    assert engine.if_exit("1", "N") == (
        "You are standing at the end of a corridor. There is a door in front of you.",
        '0')
Ejemplo n.º 6
0
def test_correct_exit_0_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "0",
        "S") == ("You are standing in what seems to be a living room.", '1')
Ejemplo n.º 7
0
def test_wrong_exit_1_2():
    # to test the output in case of no exit
    assert engine.if_exit("1", "S") == ("No exit that way", "1")
Ejemplo n.º 8
0
def test_correct_exit_11_4():
    # to test in case of correct exit
    assert engine.if_exit("11", "N") == (
        'You are standing in another bedroom. You can see a door that seems to lead to a balcony number 3.',
        '9')
Ejemplo n.º 9
0
def test_wrong_exit_0_3():
    # to test the output in case of no exit
    assert engine.if_exit("0", "W") == ("No exit that way", "0")
Ejemplo n.º 10
0
def test_wrong_exit_9_1():
    # to test the output in case of no exit
    assert engine.if_exit("9", "E") == ("No exit that way", "9")
Ejemplo n.º 11
0
def test_correct_exit_9_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "9",
        "S") == ('You are standing in the balcony of room number 9.', '11')
Ejemplo n.º 12
0
def test_correct_exit_8_3():
    # to test in case of correct exit
    assert engine.if_exit(
        "8",
        "S") == ('You are standing in the balcony of room number 8.', '10')
Ejemplo n.º 13
0
def test_wrong_exit_8_1():
    # to test the output in case of no exit
    assert engine.if_exit("8", "N") == ("No exit that way", "8")
Ejemplo n.º 14
0
def test_correct_exit_6_3():
    # to test in case of correct exit
    assert engine.if_exit(
        "6",
        "E") == ('You are standing in a kitchen. Utensils everywhere.', '7')
Ejemplo n.º 15
0
def test_correct_exit_3_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "3", "E") == ('You are standing in the balcony of Room number 3.', '4')
Ejemplo n.º 16
0
def test_correct_exit_2_4():
    # to test in case of correct exit
    assert engine.if_exit(
        "2",
        "W") == ('You are standing in what seems to be a living room.', '1')