def test_deep_copy(self): dim1 = Dimension(2, [[-1, 1], [-1, 1]], [True, True]) dim2 = dim1.deep_copy() assert dim1.equal(dim2)
def test_set_regions(self): dim = Dimension(2, [[1, 2], [2, 3]], [True, True]) dim.set_regions([[-1, 1], [-1, 1]], [True, True]) assert dim.equal(Dimension(2, [[-1, 1], [-1, 1]], [True, True]))