[Tutor] Newbie & Unittest ...

Steve Willoughby steve at alchemy.com
Thu May 6 21:15:49 CEST 2010


The unit test methods all take message arguments so if you just
want to customize the reported error, that's easily done.

something like:
  self.assertEqual(self.file.tags[k], v, "Failure with key "+k)

That's easiest.  If you really want a separate test for each, you
may want to create a factory function which will generate the individual
test methods when the testcase object is created.

--steve


More information about the Tutor mailing list