From ade2f7706813d785345563c57e7baf902ea2a7f4 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Nov 2017 11:25:51 +0000 Subject: Add style mappings for tables --- .../styles/parser/document_matcher_parser_tests.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/styles') diff --git a/tests/styles/parser/document_matcher_parser_tests.py b/tests/styles/parser/document_matcher_parser_tests.py index 62f3181..dc93941 100644 --- a/tests/styles/parser/document_matcher_parser_tests.py +++ b/tests/styles/parser/document_matcher_parser_tests.py @@ -97,6 +97,31 @@ def reads_run_with_style_name(): read_document_matcher("r[style-name='Emphasis']") ) + +@istest +def reads_plain_table(): + assert_equal( + document_matchers.table(), + read_document_matcher("table") + ) + + +@istest +def reads_table_with_style_id(): + assert_equal( + document_matchers.table(style_id="TableNormal"), + read_document_matcher("table.TableNormal") + ) + + +@istest +def reads_table_with_style_name(): + assert_equal( + document_matchers.table(style_name=document_matchers.equal_to("Normal Table")), + read_document_matcher("table[style-name='Normal Table']") + ) + + @istest def reads_bold(): assert_equal( -- cgit v1.2.3