tests: support assertIn/assertNotIn in python-2.6