Mercurial > hg > buttercup
view tests/doctest.txt @ 21:1f54294629f9
finish hg updater method
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 30 May 2011 13:56:45 -0700 |
parents | 151862a0a711 |
children | a54543838686 |
line wrap: on
line source
Test Buttercup ============== The obligatory imports:: >>> import os >>> from buttercup import source >>> cwd = os.getcwd() Test source resolution:: >>> hgsource = source.HgSource('http://k0s.org/hg/pyloader') >>> hgsource.directory() == os.path.join(cwd, 'pyloader') True >>> gitsource = source.GitSource('git://github.com/mozilla/toolbox.git') >>> gitsource.directory() == os.path.join(cwd, 'toolbox') True