11532.7.4
by Curtis Hovey
Added missing geoip doctest. |
1 |
# Copyright 2009-2010 Canonical Ltd. This software is licensed under the
|
11542.3.10
by Ian Booth
Revert some deleted files |
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
1681.1.60
by Stuart Bishop
Make request_country handle nested proxies and add tests |
3 |
|
11532.7.4
by Curtis Hovey
Added missing geoip doctest. |
4 |
"""Test GEOIP documentation."""
|
1681.1.60
by Stuart Bishop
Make request_country handle nested proxies and add tests |
5 |
|
6 |
__metaclass__ = type |
|
7 |
||
14550.1.1
by Steve Kowalik
Run format-imports over lib/lp and lib/canonical/launchpad |
8 |
from doctest import DocTestSuite |
11532.7.4
by Curtis Hovey
Added missing geoip doctest. |
9 |
import os |
10 |
||
14612.2.1
by William Grant
format-imports on lib/. So many imports. |
11 |
from lp.services.testing import build_test_suite |
14604.1.1
by Curtis Hovey
Separate test-authoring classes from test-running classes. |
12 |
from lp.testing.layers import LaunchpadFunctionalLayer |
11532.7.4
by Curtis Hovey
Added missing geoip doctest. |
13 |
|
14 |
||
15 |
here = os.path.dirname(os.path.realpath(__file__)) |
|
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
16 |
|
1681.1.60
by Stuart Bishop
Make request_country handle nested proxies and add tests |
17 |
|
18 |
def test_suite(): |
|
11532.7.5
by Curtis Hovey
Fixed test_doc harness. |
19 |
import lp.services.geoip.helpers |
20 |
inline_doctest = DocTestSuite(lp.services.geoip.helpers) |
|
11532.7.4
by Curtis Hovey
Added missing geoip doctest. |
21 |
suite = build_test_suite(here, {}, layer=LaunchpadFunctionalLayer) |
22 |
suite.addTest(inline_doctest) |
|
11532.7.5
by Curtis Hovey
Fixed test_doc harness. |
23 |
return suite |