def test_contains_nan():
    arr = np.random.random(100)
    assert not contains_nan(arr)
    arr[0] = np.nan
    assert contains_nan(arr)
Tests that pylearn2.utils.contains_nan correctly
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/tests/test_general.py/test_contains_nan