view tests/test_checkout.txt @ 53:af4155b0a260 default tip

add --prefix option
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 07:59:36 -0800
parents e0cc2fae92bd
children
line wrap: on
line source

Test Checkout
=============


Boilerplate::

    >>> from buttercup import source

Stub call method to test what is to be done::

    >>> def call_stub(*x, **kwargs): 
    ...     print ' '.join(x[0])
    >>> source.call = call_stub

Test (stubbed) __call__ method:: 

    >>> pyloader = 'http://k0s.org/hg/pyloader'
    >>> hgsource = source.HgSource(pyloader, srcdir='/tmp')
    >>> hgsource()
    hg clone http://k0s.org/hg/pyloader