aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/docx_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 13:28:57 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 13:28:57 +0000
commit4a35a848117c4fe646d36419096d099030878469 (patch)
tree9c83c8b8c0aee665311839477163776250db4b85 /tests/docx/docx_tests.py
parent8fc128a3e70465b82605b4c0bdb3d1a6ffe87ef6 (diff)
Add style_name to Run
Diffstat (limited to 'tests/docx/docx_tests.py')
-rw-r--r--tests/docx/docx_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/docx/docx_tests.py b/tests/docx/docx_tests.py
index c20a41d..15bca51 100644
--- a/tests/docx/docx_tests.py
+++ b/tests/docx/docx_tests.py
@@ -10,10 +10,10 @@ class ReadTests(object):
def can_read_document_with_single_paragraph_with_single_run_of_text(self):
with open(test_path("single-paragraph.docx")) as fileobj:
result = docx.read(fileobj=fileobj)
- expected_document = documents.Document([
+ expected_document = documents.document([
documents.paragraph([
- documents.Run([
- documents.Text("Walking on imported air")
+ documents.run([
+ documents.text("Walking on imported air")
])
])
])