[TIP] testing designing with "hidden" attributes

Daniel Knüttel daniel.knuettel at daknuett.eu
Mon Jul 16 12:25:21 PDT 2018


Hi Alceu,

I think one should not design his classes for testing purposes
(well obviously unless the classes are for testing). So you should
design your classes the way they fit the intended purpose and later you
 have to adapt your tests.

Do not forget: tests are there to check that the stuff you write works
as you want it to work. In particular it might be useful to know that
the attributes are hidden successfully.

I hope this helps.

Yours
-- 
Daniel Knüttel <daniel.knuettel at daknuett.eu>



More information about the testing-in-python mailing list