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
9c505ae3
Kaydet (Commit)
9c505ae3
authored
Mar 30, 2003
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test_whitespace_eater_unicode_2(): Test case for SF bug #710498.
üst
ba1548a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
test_email.py
Lib/email/test/test_email.py
+9
-0
No files found.
Lib/email/test/test_email.py
Dosyayı görüntüle @
9c505ae3
...
@@ -1310,6 +1310,15 @@ class TestRFC2047(unittest.TestCase):
...
@@ -1310,6 +1310,15 @@ class TestRFC2047(unittest.TestCase):
hu
=
make_header
(
dh
)
.
__unicode__
()
.
encode
(
'latin-1'
)
hu
=
make_header
(
dh
)
.
__unicode__
()
.
encode
(
'latin-1'
)
eq
(
hu
,
'Andr
\xe9
Pirard <pirard@dom.ain>'
)
eq
(
hu
,
'Andr
\xe9
Pirard <pirard@dom.ain>'
)
def
test_whitespace_eater_unicode_2
(
self
):
eq
=
self
.
assertEqual
s
=
'The =?iso-8859-1?b?cXVpY2sgYnJvd24gZm94?= jumped over the =?iso-8859-1?b?bGF6eSBkb2c=?='
dh
=
decode_header
(
s
)
eq
(
dh
,
[(
'The'
,
None
),
(
'quick brown fox'
,
'iso-8859-1'
),
(
'jumped over the'
,
None
),
(
'lazy dog'
,
'iso-8859-1'
)])
hu
=
make_header
(
dh
)
.
__unicode__
()
eq
(
hu
,
u'The quick brown fox jumped over the lazy dog'
)
# Test the MIMEMessage class
# Test the MIMEMessage class
...
...
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