From dae26433ca6f7211b2eca03d2079c86c2e2dcfc7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 12 Dec 2013 22:37:04 +0000 Subject: Read document paragraphs with style names --- tests/style_reader_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/style_reader_tests.py') 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") + ) -- cgit v1.2.3