def getSomething(self): op1 = mock() op2 = mock() something = Something(any()) something.op1 = op1 something.op2 = op2 return (something, op1, op2)