When is unit-testing bad?

Jim Hefferon jhefferon at smcvt.edu
Fri Jul 4 13:25:47 CEST 2003


"Jeremy Bowers" <jerf at jerf.org> wrote
> We're using mod_perl, and I'm using Test::Unit, which is a testing
> framework for Perl deliberately set up to look like JUnit, as Python's
> unittest is. What I'm doing is implementing an Apache Request faked-up
> object (which I later found existed in the form of the Perl module
> Apache::FakeRequest, but I think my own solution is better suited to our
> needs anyhow), and then going ahead and calling the Apache handlers
> directly with that object. It's tedious to construct the object if you
> can't find one pre-made, but it's easy.
> 
Does anyone know of a place where I could see a sample of doing this
under Python?

Thanks in advance
Jim




More information about the Python-list mailing list