Mercurial > hg > buttercup
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 17:8b4c21b853e9 | 18:151862a0a711 |
|---|---|
| 1 Test Buttercup | |
| 2 ============== | |
| 3 | |
| 4 The obligatory imports:: | |
| 5 | |
| 6 >>> import os | |
| 7 >>> from buttercup import source | |
| 8 >>> cwd = os.getcwd() | |
| 9 | |
| 10 Test source resolution:: | |
| 11 | |
| 12 >>> hgsource = source.HgSource('http://k0s.org/hg/pyloader') | |
| 13 >>> hgsource.directory() == os.path.join(cwd, 'pyloader') | |
| 14 True | |
| 15 >>> gitsource = source.GitSource('git://github.com/mozilla/toolbox.git') | |
| 16 >>> gitsource.directory() == os.path.join(cwd, 'toolbox') | |
| 17 True |
