Art of Unit Testing: Part 2
Ng Pheng Siong
ngps at madcap.dyndns.org
Sat Aug 25 11:50:28 EDT 2001
According to John Roth <johnroth at ameritech.net>:
> "Jesse F. W" <jessefw at loop.com> wrote in message
> news:mailman.998679338.16044.python-list at python.org...
> > Should you simulate the parts of the app object that are needed?
> If your class needs a player object for it to make sense, then you need
> to supply such an object, properly updated.
Not always. You might be able to fake it with "mock objects":
http://mail.python.org/pipermail/python-list/2001-March/035546.html
--
Ng Pheng Siong <ngps at post1.com> * http://www.post1.com/home/ngps
Quidquid latine dictum sit, altum viditur.
More information about the Python-list
mailing list