Revision 1315b792 test/docs_unittest.py
b/test/docs_unittest.py | ||
---|---|---|
43 | 43 |
(testutils.GetSourceDir(), filename)) |
44 | 44 |
|
45 | 45 |
|
46 |
class TestDocs(unittest.TestCase): |
|
47 |
"""Documentation tests. |
|
48 |
|
|
49 |
""" |
|
50 |
def testHookDocs(self): |
|
46 |
class TestHooksDocs(unittest.TestCase): |
|
47 |
def test(self): |
|
51 | 48 |
"""Check whether all hooks are documented. |
52 | 49 |
|
53 | 50 |
""" |
... | ... | |
88 | 85 |
msg=("Missing documentation for hook %s/%s" % |
89 | 86 |
(lucls.HTYPE, lucls.HPATH))) |
90 | 87 |
|
88 |
|
|
89 |
class TestRapiDocs(unittest.TestCase): |
|
91 | 90 |
def _CheckRapiResource(self, uri, fixup, handler): |
92 | 91 |
docline = "%s resource." % uri |
93 | 92 |
self.assertEqual(handler.__doc__.splitlines()[0].strip(), docline, |
... | ... | |
100 | 99 |
|
101 | 100 |
self.assertTrue(VALID_URI_RE.match(uri), msg="Invalid URI %r" % uri) |
102 | 101 |
|
103 |
def testRapiDocs(self):
|
|
102 |
def test(self): |
|
104 | 103 |
"""Check whether all RAPI resources are documented. |
105 | 104 |
|
106 | 105 |
""" |
Also available in: Unified diff