def _generate(self, width, height): for y in xrange(0, height): for x in xrange(0, width): floor = Floor() floor.x, floor.y = x, y self._objects.add(floor)
def test_add_turf_with_unadjustable_z_level(self): floor = Floor() floor.x, floor.y = 0, 1 with self.assertRaises(Room.TurfZLevelNotAdjustable): self.room.add(floor)