comparison tests/doctest.txt @ 0:c8c2d98afc98

initial commit (stub)
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 18 Mar 2012 20:37:19 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c8c2d98afc98
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