def __init__(self): self.nodes = [] self.lineCounter = LineCounter() self.__fileLineCountCache = None
def setUp(self): self.counter = LineCounter() self.file = self.mock() self.counter.fileOpener = self.mock() self.counter.fileOpener.expects(once()).open(eq("test.h")).will( return_value(self.file))