annotate tests/doctest.txt @ 20:272e10163900

minor fixes
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 24 Nov 2011 15:01:16 -0800
parents c04a53145f19
children 80193ae99aaf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 Test licenser
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 ================
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3
15
cf920f85fb98 more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
4 The obligatory imports::
8
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 >>> import licenser
18
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
7 >>> from licenser import licenses
15
cf920f85fb98 more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
8 >>> import os
8
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9
18
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
10 Sanity check::
8
c3c65fb15ab3 stub tests
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
11
15
cf920f85fb98 more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
12 >>> assert os.path.exists(directory)
cf920f85fb98 more stubbing
Jeff Hammel <jhammel@mozilla.com>
parents: 8
diff changeset
13
18
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
14 Test MPL license::
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
15
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
16 >>> license = licenses.MPL()
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
17 >>> variables = {'author': 'Jeff Hammel', 'email': 'k0s@k0s.org'}
c04a53145f19 interpolate the files, i hope
Jeff Hammel <jhammel@mozilla.com>
parents: 15
diff changeset
18 >>> license.interpolate(directory, variables)