[New-bugs-announce] [issue3615] Expect methods for testing.

J. Pablo Fernández report at bugs.python.org
Wed Aug 20 10:49:13 CEST 2008

New submission from J. Pablo Fernández <pupeno at pupeno.com>:

I'm attaching a patch that adds expect methods to TestCase. They are
like fail methods, but they don't fail immediately. They are useful when
you want to catch more than one error at a time.
I included some tests.
There are docstrings but more documentation might be needed. I'll gladly
write it if/when the code is good to go.
The original code was written by Donovan Baarda for an internal project
at Google, I only extracted the bits that made sense to publish and
changed the style to me more Python-alike.

components: Library (Lib)
files: expect.diff
keywords: patch
messages: 71518
nosy: pupeno
severity: normal
status: open
title: Expect methods for testing.
versions: Python 3.0
Added file: http://bugs.python.org/file11171/expect.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list