Mercurial > mozilla > hg > licenser
view tests/doctest.txt @ 23:ba47f936e9f6
remove unneeded argument
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 24 Nov 2011 15:11:31 -0800 |
parents | 80193ae99aaf |
children | d3e3a506dd29 |
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'} >>> variables = license.obtain_variables(**variables) >>> license.interpolate(directory, variables)