view tests/doctest.txt @ 19:73e815e13914

fix a few things
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 24 Nov 2011 14:55:29 -0800
parents c04a53145f19
children 80193ae99aaf
line wrap: on
line source

Test licenser
================

The obligatory imports::

    >>> import licenser
    >>> from licenser import licenses
    >>> import os

Sanity check::

    >>> assert os.path.exists(directory)

Test MPL license::

    >>> license = licenses.MPL()
    >>> variables = {'author': 'Jeff Hammel', 'email': 'k0s@k0s.org'}
    >>> license.interpolate(directory, variables)