Avoid use of assertIn for py26