comparison 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
comparison
equal deleted inserted replaced
6:29b36a390857 7:111ffe84f66a
2 =========== 2 ===========
3 3
4 The obligatory imports: 4 The obligatory imports:
5 5
6 >>> import carton 6 >>> import carton
7
8 Make a temporary directory::
9
7 >>> import tempfile 10 >>> import tempfile
11 >>> directory = tempfile.mkdtemp()
8 12
9 Run some tests:: 13 Run some tests::
10 14
11 >>> assert True 15 >>> 1 == 1
16 True
12 17
18 Clean up::
19
20 >>> import shutil
21 >>> shutil.rmtree(directory)