Make tests run again under Python 2.6

assertNone and assertIsNotNone, which were introduced with #288, are not
supported by Py26.