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
a74771c0
Kaydet (Commit)
a74771c0
authored
Eki 14, 2002
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Two new tests for splitting (or not splitting) 8-bit header data.
üst
1a6ea339
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
test_email.py
Lib/email/test/test_email.py
+21
-0
No files found.
Lib/email/test/test_email.py
Dosyayı görüntüle @
a74771c0
...
@@ -703,6 +703,27 @@ from modemcable093.139-201-24.que.mc.videotron.ca ([24.201.139.93]
...
@@ -703,6 +703,27 @@ from modemcable093.139-201-24.que.mc.videotron.ca ([24.201.139.93]
\t
id 17k4h5-00034i-00
\t
id 17k4h5-00034i-00
\t
for test@mems-exchange.org; Wed, 28 Aug 2002 11:25:20 -0400"""
)
\t
for test@mems-exchange.org; Wed, 28 Aug 2002 11:25:20 -0400"""
)
def
test_long_8bit_header
(
self
):
eq
=
self
.
ndiffAssertEqual
msg
=
Message
()
h
=
Header
(
'Britische Regierung gibt'
,
'iso-8859-1'
)
h
.
append
(
'gr
\xfc
nes Licht f
\xfc
r Offshore-Windkraftprojekte'
)
msg
[
'Subject'
]
=
h
eq
(
msg
.
as_string
(),
"""
\
Subject: =?iso-8859-1?q?Britische_Regierung_gibt?=
=?iso-8859-1?q?gr=FCnes_Licht_f=FCr_Offshore-Windkraftprojekte?=
"""
)
def
test_long_8bit_header_no_charset
(
self
):
eq
=
self
.
ndiffAssertEqual
msg
=
Message
()
msg
[
'Reply-To'
]
=
'Britische Regierung gibt gr
\xfc
nes Licht f
\xfc
r Offshore-Windkraftprojekte <a-very-long-address@example.com>'
eq
(
msg
.
as_string
(),
"""
\
Reply-To: Britische Regierung gibt gr
\xfc
nes Licht f
\xfc
r Offshore-Windkraftprojekte <a-very-long-address@example.com>
"""
)
# Test mangling of "From " lines in the body of a message
# Test mangling of "From " lines in the body of a message
...
...
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