File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,4 @@ Groups (``zarr.hierarchy``)
36
36
.. automethod :: zeros_like
37
37
.. automethod :: ones_like
38
38
.. automethod :: full_like
39
+ .. automethod :: move
Original file line number Diff line number Diff line change @@ -688,6 +688,9 @@ def test_delitem(self):
688
688
def test_move (self ):
689
689
g = self .create_group ()
690
690
691
+ data = np .arange (100 )
692
+ g ['boo' ] = data
693
+
691
694
data = np .arange (100 )
692
695
g ['foo' ] = data
693
696
@@ -719,6 +722,12 @@ def test_move(self):
719
722
assert 'bar' in g
720
723
assert isinstance (g ['foo2' ], Group )
721
724
assert_array_equal (data , g ['bar' ])
725
+
726
+ with assert_raises (ValueError ):
727
+ g2 .move ('bar' , 'bar2' )
728
+
729
+ with assert_raises (ValueError ):
730
+ g .move ('bar' , 'boo' )
722
731
except NotImplementedError :
723
732
pass
724
733
You can’t perform that action at this time.
0 commit comments