changeset 29:e0cc2fae92bd

much more successfully test call method
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 30 May 2011 21:26:50 -0700
parents 51b62e96ab51
children 6089d6ec745a
files tests/test_checkout.txt
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_checkout.txt	Mon May 30 21:23:20 2011 -0700
+++ b/tests/test_checkout.txt	Mon May 30 21:26:50 2011 -0700
@@ -8,10 +8,13 @@
 
 Stub call method to test what is to be done::
 
-    >>> source.call = lambda *x, **kw: ' '.join(x[0])
+    >>> def call_stub(*x, **kwargs): 
+    ...     print ' '.join(x[0])
+    >>> source.call = call_stub
 
-Test __call__ method:: 
+Test (stubbed) __call__ method:: 
 
     >>> pyloader = 'http://k0s.org/hg/pyloader'
-    >>> hgsource = source.HgSource(pyloader)
+    >>> hgsource = source.HgSource(pyloader, srcdir='/tmp')
     >>> hgsource()
+    hg clone http://k0s.org/hg/pyloader