forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc-coreprops.feature
More file actions
22 lines (16 loc) · 892 Bytes
/
doc-coreprops.feature
File metadata and controls
22 lines (16 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Feature: Read and write core document properties
In order to find documents and make them manageable by digital means
As a developer using python-docx
I need to access and modify the Dublin Core metadata for a document
Scenario: read the core properties of a document
Given a document having known core properties
Then I can access the core properties object
And the core property values match the known values
Scenario: change the core properties of a document
Given a document having known core properties
When I assign new values to the properties
Then the core property values match the new values
Scenario: a default core properties part is added if doc doesn't have one
Given a document having no core properties part
When I access the core properties object
Then a core properties part with default values is added