diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/doctest.txt	Sun Mar 18 20:37:19 2012 -0700
@@ -0,0 +1,21 @@
+Test lockedfile
+================
+
+The obligatory imports::
+
+    >>> import lockedfile
+    >>> import tempfile
+
+Make a locked file::
+
+    >>> filename = tempfile.mktemp()
+    >>> f = lockedfile.LockedFile(filename, 'w')
+
+The file is initially unlocked::
+
+    >>> f.locked()
+    False
+
+Merge example::
+
+    >>> NotImplementedError # TODO