Mercurial > mozilla > hg > licenser
comparison tests/doctest.txt @ 18:c04a53145f19
interpolate the files, i hope
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 24 Nov 2011 14:50:24 -0800 |
parents | cf920f85fb98 |
children | 80193ae99aaf |
comparison
equal
deleted
inserted
replaced
17:4566b3ac9838 | 18:c04a53145f19 |
---|---|
2 ================ | 2 ================ |
3 | 3 |
4 The obligatory imports:: | 4 The obligatory imports:: |
5 | 5 |
6 >>> import licenser | 6 >>> import licenser |
7 >>> from licenser import licenses | |
7 >>> import os | 8 >>> import os |
8 | 9 |
9 Run some tests:: | 10 Sanity check:: |
10 | 11 |
11 >>> assert os.path.exists(directory) | 12 >>> assert os.path.exists(directory) |
12 | 13 |
14 Test MPL license:: | |
15 | |
16 >>> license = licenses.MPL() | |
17 >>> variables = {'author': 'Jeff Hammel', 'email': 'k0s@k0s.org'} | |
18 >>> license.interpolate(directory, variables) |