aboutsummaryrefslogtreecommitdiff
path: root/tests/style_reader_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-05-11 18:01:31 +0100
committerMichael Williamson <mike@zwobble.org>2014-05-11 18:01:31 +0100
commit61e88321b9e5dc67a0373edc69f8114db8c1d3b7 (patch)
tree3f43fd006b6c095f91c2424086b273928881336c /tests/style_reader_tests.py
parent7e57058cf120717cc2d2fea3b897b12c3891b28a (diff)
Rename existing concept of style names to style IDs to match docx
Diffstat (limited to 'tests/style_reader_tests.py')
-rw-r--r--tests/style_reader_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/style_reader_tests.py b/tests/style_reader_tests.py
index 32636db..21b857e 100644
--- a/tests/style_reader_tests.py
+++ b/tests/style_reader_tests.py
@@ -72,9 +72,9 @@ class ReadDocumentMatcherTests(object):
@istest
- def reads_paragraph_with_style_name(self):
+ def reads_paragraph_with_style_id(self):
assert_equal(
- document_matchers.paragraph(style_name="Heading1"),
+ document_matchers.paragraph(style_id="Heading1"),
read_document_matcher("p.Heading1")
)
@@ -104,9 +104,9 @@ class ReadDocumentMatcherTests(object):
@istest
- def reads_run_with_style_name(self):
+ def reads_run_with_style_id(self):
assert_equal(
- document_matchers.run(style_name="Emphasis"),
+ document_matchers.run(style_id="Emphasis"),
read_document_matcher("r.Emphasis")
)