diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-12 22:37:04 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-12 22:37:04 +0000 |
| commit | dae26433ca6f7211b2eca03d2079c86c2e2dcfc7 (patch) | |
| tree | c38a3b55827b063b2dee2259b2d0dfd9b70a5bda /tests/style_reader_tests.py | |
| parent | 3672775a5469e06455685d74f0f4f0ee35505ff5 (diff) | |
Read document paragraphs with style names
Diffstat (limited to 'tests/style_reader_tests.py')
| -rw-r--r-- | tests/style_reader_tests.py | 8 |
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") + ) |
