I want to check python code that receives data from another function (e.g. MeasureRadius). MeasureRadius is not ready because it relies on a tool that I have not received yet. What is the best way to test CalculateArea with different values ββon iRadius and iErrorCode received from MeasureRadius? The automated way will be enjoyable. I was going to use unittest, but I do not know how I would change the iRadius and iErrorCode returned from MeasureRadius.
class Instrument(): def MeasureRadius(self): iErrorCode = 0 sErrorMsg = "" iRadius = 0 try:
source share