FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docx/tests/oxml/test_document.py at master · python-openxml/python-docx · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-openxml
/
python-docx
Public
Notifications
You must be signed in to change notification settings
Fork
1.3k
Star
5.7k
Code
Issues
373
Pull requests
140
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docx
/
tests
/
oxml
/
test_document.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (12 loc) · 587 Bytes
Breadcrumbs
python-docx
/
tests
/
oxml
/
test_document.py
Copy path
File metadata and controls
19 lines (12 loc) · 587 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Unit-test suite for `docx.oxml.document` module."""
from
__future__
import
annotations
from
typing
import
cast
from
docx
.
oxml
.
document
import
CT_Body
from
docx
.
oxml
.
table
import
CT_Tbl
from
docx
.
oxml
.
text
.
paragraph
import
CT_P
from
..
unitutil
.
cxml
import
element
class
DescribeCT_Body
:
"""Unit-test suite for selected units of `docx.oxml.document.CT_Body`."""
def
it_knows_its_inner_content_block_item_elements
(
self
):
body
=
cast
(
CT_Body
,
element
(
"w:body/(w:tbl, w:p,w:p)"
))
assert
[
type
(
e
)
for
e
in
body
.
inner_content_elements
]
==
[
CT_Tbl
,
CT_P
,
CT_P
]
Back
|
FazBrowse Home
|
New Git URL