[TIP] testing class properties and internal methods

Nate Lowrie solodex2151 at gmail.com
Mon Mar 5 13:33:07 PST 2007


Just wondering what the thoughts were on this.....

I have never tested class properties since they are basically getter
and setter functions.  I also never test getter and setter functions
either.

Also, I have not taken to writing unit tests for the "private",
internal methods not in the public interface for a class.  I do this
since they are called from the public interface methods.

What are people's thoughts on this?

Cheers,

Nate L.



More information about the testing-in-python mailing list