Mercurial > hg > buttercup
view tests/test_checkout.txt @ 32:86c3c0d4d434
drastic rewrite; now use classes == flowers
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 12 Jun 2011 18:22:50 -0700 |
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