Also, it should be in the file theano/compile/tests/test_ops.py to be more precise.