aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/style_reader_tests.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py
index 21b857e..c4ac513 100644
--- a/tests/style_reader_tests.py
+++ b/tests/style_reader_tests.py
@@ -80,6 +80,14 @@ class ReadDocumentMatcherTests(object):
@istest
+ def reads_paragraph_with_style_name(self):
+ assert_equal(
+ document_matchers.paragraph(style_name="Heading 1"),
+ read_document_matcher("p[style-name='Heading 1']")
+ )
+
+
+ @istest
def reads_paragraph_ordered_list(self):
assert_equal(
document_matchers.paragraph(numbering=documents.numbering_level(1, is_ordered=True)),
@@ -109,6 +117,14 @@ class ReadDocumentMatcherTests(object):
document_matchers.run(style_id="Emphasis"),
read_document_matcher("r.Emphasis")
)
+
+
+ @istest
+ def reads_run_with_style_name(self):
+ assert_equal(
+ document_matchers.run(style_name="Emphasis"),
+ read_document_matcher("r[style-name='Emphasis']")
+ )
@istest