예제 #1
0
def test_is_in_front_of():
    r1 = Room(1, 1)
    r2 = Room(2, 2)
    assert r1.is_in_front_of(r2)
    assert not r2.is_in_front_of(r1)
예제 #2
0
def test_is_in_back_of():
    r1 = Room(2, 2)
    r2 = Room(1, 1)
    assert r1.is_in_back_of(r2)
    assert not r2.is_in_back_of(r1)
예제 #3
0
def test_is_right_of():
    r1 = Room(2, 2)
    r2 = Room(1, 1)
    assert r1.is_right_of(r2)
    assert not r2.is_right_of(r1)