Mercurial > hg > buttercup
diff tests/doctest.txt @ 18:151862a0a711
begin restructuring to something more modular and extensible
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 30 May 2011 13:40:13 -0700 |
parents | |
children | a54543838686 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/doctest.txt Mon May 30 13:40:13 2011 -0700 @@ -0,0 +1,17 @@ +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