Files
scikit-image/skimage/io/tests/test_io.py
T
Andreas Mueller f7b3d8062c COSMIT pep8
2012-06-29 11:27:23 +02:00

20 lines
312 B
Python

from numpy.testing import *
import numpy as np
import skimage.io as io
def test_stack_basic():
x = np.arange(12).reshape(3, 4)
io.push(x)
assert_array_equal(io.pop(), x)
@raises(ValueError)
def test_stack_non_array():
io.push([[1, 2, 3]])
if __name__ == "__main__":
run_module_suite()