Mercurial > hg > PaInt
annotate tests/doctest.txt @ 56:042a1b2a3e8a
start flushing out tests
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 23 Jan 2013 16:01:29 -0800 |
| parents | a8236b97abd3 |
| children | d5e5c7496784 |
| rev | line source |
|---|---|
| 0 | 1 Test PaInt |
| 23 | 2 ========== |
| 0 | 3 |
| 11 | 4 The obligatory imports:: |
| 0 | 5 |
| 56 | 6 >>> import os |
| 0 | 7 >>> import paint |
| 8 | |
| 11 | 9 Get the dependencies of a package:: |
| 0 | 10 |
| 50 | 11 >>> jetperf = paint.Package('http://k0s.org/mozilla/hg/jetperf/archive/tip.tar.gz', verbose=False) |
| 11 | 12 >>> dependencies = jetperf.dependencies() |
|
21
4df3e715817d
now have passing tests again
Jeff Hammel <jhammel@mozilla.com>
parents:
11
diff
changeset
|
13 >>> dependencies == {'mozharness': 'http://hg.mozilla.org/build/mozharness/archive/tip.tar.gz#egg=mozharness', 'talos': 'http://hg.mozilla.org/build/talos/archive/tip.tar.gz#egg=talos'} |
|
4df3e715817d
now have passing tests again
Jeff Hammel <jhammel@mozilla.com>
parents:
11
diff
changeset
|
14 True |
| 52 | 15 >>> jetperf._cleanup() |
|
54
a8236b97abd3
separate methods for gathering package information
Jeff Hammel <jhammel@mozilla.com>
parents:
52
diff
changeset
|
16 |
|
a8236b97abd3
separate methods for gathering package information
Jeff Hammel <jhammel@mozilla.com>
parents:
52
diff
changeset
|
17 Test different ways of getting package information. First we'll use |
|
a8236b97abd3
separate methods for gathering package information
Jeff Hammel <jhammel@mozilla.com>
parents:
52
diff
changeset
|
18 an interface that overrides ``setuptools.setup``:: |
|
a8236b97abd3
separate methods for gathering package information
Jeff Hammel <jhammel@mozilla.com>
parents:
52
diff
changeset
|
19 |
|
a8236b97abd3
separate methods for gathering package information
Jeff Hammel <jhammel@mozilla.com>
parents:
52
diff
changeset
|
20 >>> import paint.info |
| 56 | 21 >>> dummy_path = os.path.join(here, 'dummy') |
| 22 >>> package_info = paint.info.SetupOverridePackageInfo(dummy_path) |
