From 838736f4d74b43d59aa7bdc96830e0be7fd7f258 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 20 May 2017 15:28:37 +0100 Subject: Read whether row is header --- tests/docx/document_matchers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/docx/document_matchers.py') diff --git a/tests/docx/document_matchers.py b/tests/docx/document_matchers.py index dd2276d..d2e5d5c 100644 --- a/tests/docx/document_matchers.py +++ b/tests/docx/document_matchers.py @@ -16,6 +16,8 @@ def create_element_matcher(element_type): is_paragraph = create_element_matcher(documents.Paragraph) is_run = create_element_matcher(documents.Run) is_hyperlink = create_element_matcher(documents.Hyperlink) +is_table = create_element_matcher(documents.Table) +is_row = create_element_matcher(documents.TableRow) is_empty_run = is_run(children=[]) -- cgit v1.2.3