def test_no_overlap(self): r1 = Room(self.cells) cs2 = deepcopy(self.cells) r2 = Room(cs2) r2.shift_vertical(100) assert not r1.overlaps(r2)
def test_overlaps(self): r1 = Room(self.cells) r2 = Room(deepcopy(self.cells)) assert r1.overlaps(r2)