diff tests/test_checkout.txt @ 27:901755a65249

start stubbing checkout
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 30 May 2011 21:21:42 -0700
parents
children e0cc2fae92bd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_checkout.txt	Mon May 30 21:21:42 2011 -0700
@@ -0,0 +1,17 @@
+Test Checkout
+=============
+
+
+Boilerplate::
+
+    >>> from buttercup import source
+
+Stub call method to test what is to be done::
+
+    >>> source.call = lambda *x, **kw: ' '.join(x[0])
+
+Test __call__ method:: 
+
+    >>> pyloader = 'http://k0s.org/hg/pyloader'
+    >>> hgsource = source.HgSource(pyloader)
+    >>> hgsource()