(self)
| 634 | assert_raises(ValueError, dsplit, a, 2) |
| 635 | |
| 636 | def test_2D_array(self): |
| 637 | a = np.array([[1, 2, 3, 4], |
| 638 | [1, 2, 3, 4]]) |
| 639 | try: |
| 640 | dsplit(a, 2) |
| 641 | assert_(0) |
| 642 | except ValueError: |
| 643 | pass |
| 644 | |
| 645 | def test_3D_array(self): |
| 646 | a = np.array([[[1, 2, 3, 4], |