[TIP] Meta-test methods...

laidler at stsci.edu laidler at stsci.edu
Wed Apr 22 12:28:37 PDT 2009


>Date: Wed, 22 Apr 2009 15:10:28 -0400
>From: testing-in-python-bounces at lists.idyll.org (on behalf of Jesse Noller <jnoller at gmail.com>)
>On Wed, Apr 22, 2009 at 3:03 PM, Douglas Philips <dgou at mac.com> wrote:

>
>Yes, nose supports test generators. They're the balls.

Complete with elaborate ball gowns and dancing?

>
>See:
>loadTestsFromGenerator
>loadTestsFromGeneratorMethod
>in:
>http://code.google.com/p/python-nose/source/browse/trunk/nose/loader.py


Do the names of the generated tests come out right yet?

Last time I played with this (last summer), the names came out
right in verbose mode, but wrong in the actual error report
for failing tests. There was a workaround but it was non-intuitive,
at least to me.
(See http://groups.google.com/group/nose-users/browse_thread/thread/9187b00ff3e75eba/d85fa52d81a85971?lnk=gst&q=laidler#d85fa52d81a85971)

Vicki



More information about the testing-in-python mailing list