diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-05-20 15:28:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-05-20 15:28:37 +0100 |
| commit | 838736f4d74b43d59aa7bdc96830e0be7fd7f258 (patch) | |
| tree | a0045111040e75ea3977af3c02ce372e8202fbfe /tests/docx/document_matchers.py | |
| parent | d0b4eb76001049a23fe038025cfa56472703fa70 (diff) | |
Read whether row is header
Diffstat (limited to 'tests/docx/document_matchers.py')
| -rw-r--r-- | tests/docx/document_matchers.py | 2 |
1 files changed, 2 insertions, 0 deletions
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=[]) |
