[Assorted-commits] SF.net SVN: assorted:[1669] sandbox/trunk/src/py/mocks.py
Brought to you by:
yangzhang
From: <yan...@us...> - 2010-05-26 20:43:12
|
Revision: 1669 http://assorted.svn.sourceforge.net/assorted/?rev=1669&view=rev Author: yangzhang Date: 2010-05-26 20:43:06 +0000 (Wed, 26 May 2010) Log Message: ----------- Added ludibrio mock test demo Added Paths: ----------- sandbox/trunk/src/py/mocks.py Added: sandbox/trunk/src/py/mocks.py =================================================================== --- sandbox/trunk/src/py/mocks.py (rev 0) +++ sandbox/trunk/src/py/mocks.py 2010-05-26 20:43:06 UTC (rev 1669) @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +from ludibrio import * + +with Mock() as greetings: + greetings.hello('one') >> 'two' + greetings.hello('two') >> 'two' + +def test_greetings(): + print greetings.hello('one') + print greetings.hello('one') Property changes on: sandbox/trunk/src/py/mocks.py ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |