Use assertTrue rather than assertIn

The latter was added in py27