Mercurial > hg > carton
annotate tests/doctest.txt @ 7:111ffe84f66a
more stubbing
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Fri, 08 Jul 2011 10:59:25 -0700 |
| parents | 7ea2b5f12b2d |
| children | 5905459d4ebe |
| rev | line source |
|---|---|
| 5 | 1 Test carton |
| 2 =========== | |
| 3 | |
| 4 The obligatory imports: | |
| 5 | |
| 6 >>> import carton | |
| 7 | 7 |
| 8 Make a temporary directory:: | |
| 9 | |
| 5 | 10 >>> import tempfile |
| 7 | 11 >>> directory = tempfile.mkdtemp() |
| 5 | 12 |
| 13 Run some tests:: | |
| 14 | |
| 7 | 15 >>> 1 == 1 |
| 16 True | |
| 5 | 17 |
| 7 | 18 Clean up:: |
| 19 | |
| 20 >>> import shutil | |
| 21 >>> shutil.rmtree(directory) |
