def test_image_load():
 assert_raises(AssertionError, load, 1)
 path = os.path.join(pylearn2.__path__[0], 'utils', 'tests', 'example_image', 'mnist0.jpg')
 img = load(path)
 eq_(img.shape, (28, 28, 1))

def test_image_load ( ) : assert_raises ( AssertionError , load , 1 ) path = os . path . join ( pylearn2 . __path__ [ 0 ] , 'utils' , 'tests' , 'example_image' , 'mnist0.jpg' ) img = load ( path ) eq_ ( img . shape , ( 28 , 28 , 1 ) )
test utils .