Mercurial > hg > lockedfile
annotate tests/doctest.txt @ 1:1981f44ca250 default tip
remove unneeded files
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 18 Mar 2012 20:39:23 -0700 |
parents | c8c2d98afc98 |
children |
rev | line source |
---|---|
0 | 1 Test lockedfile |
2 ================ | |
3 | |
4 The obligatory imports:: | |
5 | |
6 >>> import lockedfile | |
7 >>> import tempfile | |
8 | |
9 Make a locked file:: | |
10 | |
11 >>> filename = tempfile.mktemp() | |
12 >>> f = lockedfile.LockedFile(filename, 'w') | |
13 | |
14 The file is initially unlocked:: | |
15 | |
16 >>> f.locked() | |
17 False | |
18 | |
19 Merge example:: | |
20 | |
21 >>> NotImplementedError # TODO |