src/test.py: Implement assertIn for old Python versions.