sklearn.utils.testing.assert_not_in

sklearn.utils.testing.assert_not_in(*args, **kwargs)[source]

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