Is code duplication allowed in this instance?

Rickard Lindberg ricli85 at
Fri Jul 3 07:29:44 EDT 2009

> Whoever it so happens to verify the
> output from the method I have to employ the same algorithm within the
> method to do the verification since there is no way I can determine
> the output before hand.

Can you clarify this scenario a bit?

If you are performing black-box testing I don't see why you need to
use the same algorithm in the test code. But maybe your case is
special. On the other hand you can not perform black-box testing if
the output is not known for a given input.

Rickard Lindberg

More information about the Python-list mailing list