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)
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)
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)