Advogato blog for jdahlinAdvogato blog for jdahlin16 Aug 2006- August 16, 2006 Testing a dynamic language A colleague recently complained to me that I'm forcing him to write a unittest without a good reason. He had written a small method which he told me that there's almost no way of breaking, it's so trivial that it doesn't need a test. The code in question was written in Python and looked like this: from some.module import Settings class Object(Base): def is_fluff(self): return self.state == Settings.STATE_FLUFF In his change he added the...http://www.advogato.org/person/jdahlin/diary.html?start=17 |