[Python-bugs-list] [ python-Feature Requests-708125 ] Requesting Mock Object support for unittest.TestCase
SourceForge.net
noreply@sourceforge.net
Mon, 24 Mar 2003 12:13:09 -0800
Feature Requests item #708125, was opened at 2003-03-22 20:05
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=708125&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Russell (mattruss)
>Assigned to: Steve Purcell (purcell)
Summary: Requesting Mock Object support for unittest.TestCase
Initial Comment:
I previously submitted a patch (sf id 706590),
since I was following www.python.com's notes on how
to contribute - since using sf more i think i should of
added it to this RFE. Since posting the orignal patch I
have updated the code based upon sugestions from
python-dev and others.
please view my origanal patch here:
https://sourceforge.net/tracker/index.php?
func=detail&aid=706590&group_id=5470&atid=305470
This patch adds one method - createMockInstance
(classDef, overrides, *initArgs, **initKwds)
to unittest.TestCase, and two classes MockFactory and
MockMethod.
Since both these classes should never really be used
outside the scope of a unittest, I thought it best to add
them to the unittest module (allthough it is getting rather
big - should be split into a package?)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=708125&group_id=5470