Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
efffd28c
Commit
efffd28c
authored
Sep 30, 2000
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mimetools testcase.
parent
25d16924
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
Lib/test/output/test_mimetools
Lib/test/output/test_mimetools
+5
-0
Lib/test/test_mimetools.py
Lib/test/test_mimetools.py
+18
-0
No files found.
Lib/test/output/test_mimetools
0 → 100644
View file @
efffd28c
test_mimetools
7bit PASS
8bit PASS
base64 PASS
quoted-printable PASS
Lib/test/test_mimetools.py
0 → 100644
View file @
efffd28c
from
test_support
import
TestFailed
import
mimetools
import
string
,
StringIO
start
=
string
.
letters
+
"="
+
string
.
digits
+
"
\
n
"
for
enc
in
[
'7bit'
,
'8bit'
,
'base64'
,
'quoted-printable'
]:
print
enc
,
i
=
StringIO
.
StringIO
(
start
)
o
=
StringIO
.
StringIO
()
mimetools
.
encode
(
i
,
o
,
enc
)
i
=
StringIO
.
StringIO
(
o
.
getvalue
())
o
=
StringIO
.
StringIO
()
mimetools
.
decode
(
i
,
o
,
enc
)
if
o
.
getvalue
()
==
start
:
print
"PASS"
else
:
print
"FAIL"
print
o
.
getvalue
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment