Should I unittest private/protected method
Should I unittest private/protected method Question: This is actually language agnostic. But I’ll give you context in python. I have this parent class class Mammal(object): def __init__(self): “”” do some work “”” def eat(self, food): “””Eat the food””” way_to_eat = self._eating_method() self._consume(food) def _eating_method(self): “””Template method””” def _consume(self, food): “””Template method””” Here eat is the …