If I'm writing a library in C that includes a Python interface, is it OK to just write unit tests for the functions, etc in the Python interface? Assuming the Python interface is complete, it should imply the C code works.
Mostly I'm being lazy in that the Python unit test thing takes almost zero effort to use.
thanks,
-nick
Tests through the Python interface will be valuable acceptance tests for your library. They will not however be unit tests.
Unit tests are written by the same coders, in the same language, on the same platform as the unit which they test. These should be written too!
You're right, though, unit testing in Python is far easier than C++ (or even C, which is what you said!).
trickle down unit tests