annotate tests/test_checkout.txt @ 28:51b62e96ab51
name doctest files more sensibly
author |
Jeff Hammel <jhammel@mozilla.com> |
date |
Mon, 30 May 2011 21:23:20 -0700 |
parents |
901755a65249 |
children |
e0cc2fae92bd |
rev |
line source |
27
|
1 Test Checkout
|
|
2 =============
|
|
3
|
|
4
|
|
5 Boilerplate::
|
|
6
|
|
7 >>> from buttercup import source
|
|
8
|
|
9 Stub call method to test what is to be done::
|
|
10
|
|
11 >>> source.call = lambda *x, **kw: ' '.join(x[0])
|
|
12
|
|
13 Test __call__ method::
|
|
14
|
|
15 >>> pyloader = 'http://k0s.org/hg/pyloader'
|
|
16 >>> hgsource = source.HgSource(pyloader)
|
|
17 >>> hgsource()
|