1 |
commit: 467df55c6a11a3f9be5437ab3851e2dbd770bbda |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 17:53:53 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 17:53:53 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=467df55c |
7 |
|
8 |
Add an instantiation test for PMSTestSuite.cli. |
9 |
|
10 |
--- |
11 |
PMSTestSuite/cli.py | 2 ++ |
12 |
run-tests.py | 2 ++ |
13 |
2 files changed, 4 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/PMSTestSuite/cli.py b/PMSTestSuite/cli.py |
16 |
index 746d9f8..b5c8921 100644 |
17 |
--- a/PMSTestSuite/cli.py |
18 |
+++ b/PMSTestSuite/cli.py |
19 |
@@ -23,6 +23,8 @@ class PMSTestSuiteCLI(object): |
20 |
- library (TestLibrary), |
21 |
- pm (PackageManager), |
22 |
- repository (EbuildRepository). |
23 |
+ |
24 |
+ >>> cli = PMSTestSuiteCLI() |
25 |
""" |
26 |
|
27 |
def __init__(self): |
28 |
|
29 |
diff --git a/run-tests.py b/run-tests.py |
30 |
index fe3a8d8..6709a6b 100755 |
31 |
--- a/run-tests.py |
32 |
+++ b/run-tests.py |
33 |
@@ -2,11 +2,13 @@ |
34 |
|
35 |
import unittest, doctest |
36 |
|
37 |
+import PMSTestSuite.cli |
38 |
import PMSTestSuite.library |
39 |
import PMSTestSuite.pm |
40 |
import PMSTestSuite.repository |
41 |
|
42 |
def load_tests(loader, tests, ignore): |
43 |
+ tests.addTests(doctest.DocTestSuite(PMSTestSuite.cli)) |
44 |
tests.addTests(doctest.DocTestSuite(PMSTestSuite.library)) |
45 |
tests.addTests(doctest.DocTestSuite(PMSTestSuite.library.case)) |
46 |
tests.addTests(doctest.DocTestSuite(PMSTestSuite.pm)) |