sklearn.utils.testing.assert_in

sklearn.utils.testing.assert_in(*args, **kwargs)

Just like self.assertTrue(a in b), but with a nicer default message.