def test_slices_pos_different_dim():
 with pytest.raises(ValueError) as e:
  overlap_slices((4, 5), (1, 2), (0, 0, 3))
 assert (u'the same number of dimensions' in str(e.value))

def test_slices_pos_different_dim ( ) : with pytest . raises ( ValueError ) as e : overlap_slices ( ( 4 , 5 ) , ( 1 , 2 ) , ( 0 , 0 , 3 ) ) assert ( u'the same number of dimensions' in str ( e . value ) )
position must have same dim as arrays .