aboutsummaryrefslogtreecommitdiff
path: root/tests/styles
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-29 21:42:49 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-29 21:42:49 +0000
commit85235a9cf69f847c2451eacaf44a242e6433937a (patch)
treef87a13301a134dc10f3190ecbb7a6d45e23f89ae /tests/styles
parent15984eb246379f80050ee2bd816dc9bb2a1ffc5f (diff)
Introduce string matchers for matching style name
Diffstat (limited to 'tests/styles')
-rw-r--r--tests/styles/parser/document_matcher_parser_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/styles/parser/document_matcher_parser_tests.py b/tests/styles/parser/document_matcher_parser_tests.py
index e34bb79..bec2368 100644
--- a/tests/styles/parser/document_matcher_parser_tests.py
+++ b/tests/styles/parser/document_matcher_parser_tests.py
@@ -33,7 +33,7 @@ def reads_paragraph_with_style_id():
@istest
def reads_paragraph_with_exact_style_name():
assert_equal(
- document_matchers.paragraph(style_name="Heading 1"),
+ document_matchers.paragraph(style_name=document_matchers.equal_to("Heading 1")),
read_document_matcher("p[style-name='Heading 1']")
)
@@ -79,7 +79,7 @@ def reads_run_with_style_id():
@istest
def reads_run_with_style_name():
assert_equal(
- document_matchers.run(style_name="Emphasis"),
+ document_matchers.run(style_name=document_matchers.equal_to("Emphasis")),
read_document_matcher("r[style-name='Emphasis']")
)