Python 2.6 compatibility

`TestCase.assertIsNone` is replaced by `TestCase.assertTrue`.