annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 Test Checkout
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 =============
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 Boilerplate::
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 >>> from buttercup import source
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9 Stub call method to test what is to be done::
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
10
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11 >>> source.call = lambda *x, **kw: ' '.join(x[0])
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
12
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
13 Test __call__ method::
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
14
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
15 >>> pyloader = 'http://k0s.org/hg/pyloader'
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
16 >>> hgsource = source.HgSource(pyloader)
901755a65249 start stubbing checkout
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
17 >>> hgsource()