Removed use of TestCase.assertIsInstance for python-2.6 compatibility.