l.t.t.t.RealActualClass : class documentation

Part of lp.testing.tests.test_fakemethod View In Hierarchy

A class that's hard to test.
Method impossibleMethod A method that you can't afford to invoke in your test.
Method testableMethod This part of the class logic that you do want to exercise.
Method doComplicatedThings This is the top-level method you want to test.
def impossibleMethod(self):
A method that you can't afford to invoke in your test.

This is the method you're going to want to avoid calling. The way to do that is to replace this method with a fake method.

def testableMethod(self):
This part of the class logic that you do want to exercise.
def doComplicatedThings(self, argument):
This is the top-level method you want to test.

Unfortunately this invokes impossibleMethod, making it hard.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.