From c0325f910b1fabc8af3aaa22c2d41d2cdbd88332 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 4 Aug 2014 13:57:03 +0200 Subject: [PATCH] Fix method name of verify_section_tags_have_xmid The name of the method verify_section_tags_have_xmid should be verify_section_tags_have_xmlid. Change-Id: Ib261a50cffce3a27beaee206b61ca158a6c9865a --- os_doc_tools/doctest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_doc_tools/doctest.py b/os_doc_tools/doctest.py index 8d9bbd43..9afa2dbc 100755 --- a/os_doc_tools/doctest.py +++ b/os_doc_tools/doctest.py @@ -129,7 +129,7 @@ def validation_failed(schema, doc): any(log.type_name != "DTD_UNKNOWN_ID" for log in schema.error_log)) -def verify_section_tags_have_xmid(doc): +def verify_section_tags_have_xmlid(doc): """Check that all section tags have an xml:id attribute. Will throw an exception if there's at least one missing. @@ -459,7 +459,7 @@ def validate_one_file(schema, rootdir, path, verbose, if validation_failed(schema, doc): any_failures = True print(error_message(schema.error_log)) - verify_section_tags_have_xmid(doc) + verify_section_tags_have_xmlid(doc) verify_profiling(doc) if check_niceness: verify_whitespace_niceness(path)