Fix nose tests on Python 2.6.
Use ok_ instead of assert so it isn't a no-op under python -O. Tersen a little.
Merge fixes for testing under Python < 2.7. Closes #80.