BVLC/caffe — pull request #1473 by longjon (2014-11-25 03:01:57+00:00)
Title: Pytest

After #1472.

This PR adds Python testing of very basic functionality.
* Testing is through the built-in `unittest` module. We might want to consider other testing libraries (like `nose`) in the future, but this is fine for now.
* Hooks are added for the Makefile (`make pytest`) and Travis.
* Tests are meant to exercise tricky things that come up in the Python wrapper (like memory management), and not be redundant with existing C++ tests.
* Only very basic testing (of some functions from `_caffe`) is included so far. I'm going to go ahead and work on pycaffe on top of this, but BVLC folk are welcome to push more tests to this branch, and decide whether this should be merged right away (to at least have some testing) or a bit later (so that testing is not misleading by its paucity).
* Includes a bugfix revealed by the tests.