[TIP] hackish generative tests (was: Re: Generating tests, II (was: Re: Meta-test methods...))

Douglas Philips dgou at mac.com
Tue May 5 17:48:09 PDT 2009


Earlier, I indited:
> I really like the funcargs approach, and it might work in my  
> setting. It would require a gradual transition from  
> self.power_cycle(..) to power_device.power_cycle() where  
> power_device was a funcargs provided parameter. :)

In the example you showed, a func-args-producer was passed in a func- 
args-consumer function.
I was presuming that this would generalize to multiple arguments, but  
wanted to make that an explicit point. One test might need a power  
interface and a communications interface and ... (typically about  
three or four such wirings up for the more complex tests)...

-Doug




More information about the testing-in-python mailing list