Python 2.6 compatibility

`TestCase.assertIsInstance` is replaced by `TestCase.assertTrue`.