Make usage of str.format() compatible with py2.6
Replace missing unittest.TestCase.assertIn in py2.6