Once again, semantics feels a bit sloppy, since the function returns an instance of the "mock" widget class, not a mock instance. I would say choose a name to represent the test widget class (like "TestWidgetClass" or something), and then use that name consistently, so your funnction name would be "_getTestWidgetClassInstance".