From 1315b7923f27257e00b88ab34a4c3bad0ac3b8d3 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Wed, 14 Sep 2011 12:31:14 +0200
Subject: [PATCH] docs unittest: Split into two separate test cases

The RAPI and hooks documentation aren't related at all.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 test/docs_unittest.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/test/docs_unittest.py b/test/docs_unittest.py
index a67370559..9bfe6e613 100755
--- a/test/docs_unittest.py
+++ b/test/docs_unittest.py
@@ -43,11 +43,8 @@ def _ReadDocFile(filename):
                         (testutils.GetSourceDir(), filename))
 
 
-class TestDocs(unittest.TestCase):
-  """Documentation tests.
-
-  """
-  def testHookDocs(self):
+class TestHooksDocs(unittest.TestCase):
+  def test(self):
     """Check whether all hooks are documented.
 
     """
@@ -88,6 +85,8 @@ class TestDocs(unittest.TestCase):
                  msg=("Missing documentation for hook %s/%s" %
                       (lucls.HTYPE, lucls.HPATH)))
 
+
+class TestRapiDocs(unittest.TestCase):
   def _CheckRapiResource(self, uri, fixup, handler):
     docline = "%s resource." % uri
     self.assertEqual(handler.__doc__.splitlines()[0].strip(), docline,
@@ -100,7 +99,7 @@ class TestDocs(unittest.TestCase):
 
     self.assertTrue(VALID_URI_RE.match(uri), msg="Invalid URI %r" % uri)
 
-  def testRapiDocs(self):
+  def test(self):
     """Check whether all RAPI resources are documented.
 
     """
-- 
GitLab