aboutsummaryrefslogtreecommitdiff
path: root/tests/styles/parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/styles/parser')
-rw-r--r--tests/styles/parser/document_matcher_parser_tests.py25
1 files changed, 25 insertions, 0 deletions
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(