view 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 source

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()