forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc-access-collections.feature
More file actions
29 lines (19 loc) · 981 Bytes
/
doc-access-collections.feature
File metadata and controls
29 lines (19 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Feature: Access document collections
In order to operate on objects related to a document
As a developer using python-docx
I need a way to access each of the document's collections
Scenario: Access the inline shapes collection of a document
Given a document having inline shapes
Then document.inline_shapes is an InlineShapes object
Scenario: Access the paragraphs in the document body as a list
Given a document containing three paragraphs
Then document.paragraphs is a list containing three paragraphs
Scenario: Access the section collection of a document
Given a document having sections
Then document.sections is a Sections object
Scenario: Access the styles collection of a document
Given a document having styles
Then document.styles is a Styles object
Scenario: Access the tables collection of a document
Given a document having three tables
Then document.tables is a list containing three tables