aboutsummaryrefslogtreecommitdiff
path: root/tests/style_reader_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/style_reader_tests.py')
-rw-r--r--tests/style_reader_tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py
index 433b8b3..c04c44b 100644
--- a/tests/style_reader_tests.py
+++ b/tests/style_reader_tests.py
@@ -69,3 +69,11 @@ class ReadDocumentMatcherTests(object):
document_matchers.paragraph(),
read_document_matcher("p")
)
+
+
+ @istest
+ def reads_paragraph_with_style_name(self):
+ assert_equal(
+ document_matchers.paragraph(style_name="Heading1"),
+ read_document_matcher("p.Heading1")
+ )