Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
efffd28c
Kaydet (Commit)
efffd28c
authored
Eyl 30, 2000
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add mimetools testcase.
üst
25d16924
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
test_mimetools
Lib/test/output/test_mimetools
+5
-0
test_mimetools.py
Lib/test/test_mimetools.py
+18
-0
No files found.
Lib/test/output/test_mimetools
0 → 100644
Dosyayı görüntüle @
efffd28c
test_mimetools
7bit PASS
8bit PASS
base64 PASS
quoted-printable PASS
Lib/test/test_mimetools.py
0 → 100644
Dosyayı görüntüle @
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