def METHOD_NAME(self):
    """
    Tests edge cause where target weights have a 0 weight which is unacceptable for downstream processing (inverse weights will 1/0)
    """  # noqa
    data = ["apple", "apple", "banana", "apple", "apple", "orange"]
    # Arbitrary weights (ex: number of examples)
    tweights = {"apple": 100, "banana": 1, "orange": 0}
    enc = OneHotEncoder(use_unknown=False, is_target=True, target_weights=tweights)
    # Check if 0-weight class is rejected
    self.assertRaises(ValueError, enc.prepare, data)