Implement TestCase.assertIn for older versions of Python.