Revision 6be8e2bf test/docs_unittest.py

b/test/docs_unittest.py
131 131

  
132 132
  @staticmethod
133 133
  def _ReadManFile(name):
134
    return utils.ReadFile("%s/man/%s.sgml" %
134
    return utils.ReadFile("%s/man/%s.rst" %
135 135
                          (testutils.GetSourceDir(), name))
136 136

  
137 137
  @staticmethod
......
148 148
    missing = []
149 149

  
150 150
    for cmd in commands:
151
      pattern = "<cmdsynopsis>\s*<command>%s</command>" % re.escape(cmd)
152
      if not re.findall(pattern, mantext, re.S):
151
      pattern = r"^(\| )?\*\*%s\*\*" % re.escape(cmd)
152
      if not re.findall(pattern, mantext, re.DOTALL | re.MULTILINE):
153 153
        missing.append(cmd)
154 154

  
155 155
    self.failIf(missing,

Also available in: Unified diff