summaryrefslogtreecommitdiff
path: root/mocker.py
Commit message (Expand)AuthorAgeFilesLines
* apply 1.1.1 patchesZygmunt Krynicki2012-10-221-2/+4
* Introduced the more natural reading assertIsNotInstance().Gustavo Niemeyer2010-09-181-1/+2
* Added assertRaisesRegexp() to MockerTestCase. It works similarly toGustavo Niemeyer2010-09-181-3/+32
* - Implemented support for assertRaises() as a context manager, as inGustavo Niemeyer2010-09-181-15/+51
* Tasks now have a may_run_user_code() method, which is used for tasks whichGustavo Niemeyer2010-09-181-15/+50
* mocker.call() now supports a with_object argument. If True, the calledGustavo Niemeyer2010-07-291-4/+11
* Preparing to release version 1.0!Gustavo Niemeyer2010-06-201-1/+1
* MockerTestCase.assertRaises() will now return the exception raised,Gustavo Niemeyer2010-06-201-0/+21
|\
| * Return exception in failUnlessRaises, test it.Thomas Hervé2008-11-191-0/+22
* | Fixed support for MockerTestCase.addCleanup() in Python 2.3,Gustavo Niemeyer2010-06-201-0/+9
* | Unwrap bound methods on replace() and proxy(), as suggestedGustavo Niemeyer2010-06-201-0/+2
* | Use the more reliable expect() automatically with MockerTestCase.Gustavo Niemeyer2010-06-201-2/+1
* | Implemented Expect helper, which allows creating a new expect()Gustavo Niemeyer2010-06-201-2/+20
* | Added MockerTestCase to __all__.Gustavo Niemeyer2010-06-201-1/+1
* | Applied change suggested by David Glick to avoid reimporting modules (#529675).Gustavo Niemeyer2010-06-201-1/+2
* | Changed license to BSD, since the PSF license only applies to PythonGustavo Niemeyer2010-06-201-4/+32
* | Updated NEWS file.Gustavo Niemeyer2010-06-191-0/+2
* | Fixed support for Python 2.6. Mocking of iterators was broken inGustavo Niemeyer2010-06-191-0/+2
* | __nonzero__ should necessarily return a boolean value, so transform MockGustavo Niemeyer2010-03-151-1/+4
* | Merged 328990-mocker-hides-exception branch from Duncan McGreggor. ThisGustavo Niemeyer2009-02-131-1/+2
|\ \ | |/ |/|
| * - Added a new unit test to check for a bug in mocker where the originalDuncan McGreggor2009-02-131-1/+2
|/
* Merging branch from Thomas which changes Mocker.patch() to use theGustavo Niemeyer2008-07-011-1/+1
|\
| * Use the version that passes the landscape tests. Add a test for one of the fix.Thomas Hervé2008-06-301-1/+2
* | Prevent the MockerTestCase base from leaving the mocker in replay modeGustavo Niemeyer2008-07-011-0/+1
|/
* A couple of changes to better accomodate py3k changes.Gustavo Niemeyer2008-03-281-2/+2
* When cleaning up on MockerTestCase, use reset() rather than restore(),Gustavo Niemeyer2008-03-281-1/+1
* Fixed patching of objects which define __getattr__.0.10.1Gustavo Niemeyer2007-12-111-3/+25
* Preparing to release 0.10.0.10Gustavo Niemeyer2007-12-091-1/+1
* Orderer() is now implemented based on may_run() instead of matches().Gustavo Niemeyer2007-12-091-12/+16
* Introduced {Task,Event}.may_run() to improve replaying orderingGustavo Niemeyer2007-12-091-6/+40
* When the expression executed isn't exactly the same as theGustavo Niemeyer2007-12-091-7/+13
* Fixed problem when requesting order on similar expressions. TheGustavo Niemeyer2007-12-091-7/+11
* MockerTestCase.makeFile() with content=None (the default) nowGustavo Niemeyer2007-12-071-7/+7
* New 'path' option to MockerTestCase.makeFile() and makeDir(),Gustavo Niemeyer2007-12-051-11/+16
* New MATCH() argument matcher, which allows using a functionGustavo Niemeyer2007-12-051-1/+11
* Implemented MockerTestCase.addCleanup(). It allows one toGustavo Niemeyer2007-12-051-11/+24
* Now when a spec is provided (or with proxy/replace/patch) theGustavo Niemeyer2007-12-041-0/+4
* MockerTestCase now verifies if the mocker is put in replayGustavo Niemeyer2007-12-041-1/+7
* Implemented support for Deferred results as understood byGustavo Niemeyer2007-12-041-6/+16
* In MockerTestCase's constructor, copy attributes from the original methodGustavo Niemeyer2007-12-041-1/+6
* Break the import of sets for Python 2.3 and add pragma: nocoverGustavo Niemeyer2007-11-241-2/+2
* Preparing to release 0.9.3.0.9.3Gustavo Niemeyer2007-11-241-1/+1
* - Added support for Python 2.3 (patch by Phillip J. Eby).Gustavo Niemeyer2007-11-241-21/+42
* Introduced automatic test coverage verification, and covered theGustavo Niemeyer2007-11-231-11/+3
* Updated version to 0.9.2.0.9.2Gustavo Niemeyer2007-11-221-1/+1
* Now Mocker.mock()/proxy()/replace() accept a 'count' keywordGustavo Niemeyer2007-11-221-9/+21
* In recording mode, mock.__class__ will now return Mock, and notGustavo Niemeyer2007-11-221-3/+4
* Fixed setup.py to install mocker.py properly.0.9.1Gustavo Niemeyer2007-11-181-1/+1
* Preparing to release version 0.9.0.9Gustavo Niemeyer2007-11-171-1/+1
* Added MockerTestCase.assert[Not]{Starts,Ends}With().Gustavo Niemeyer2007-11-171-0/+28