view 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 source

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