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
271ade87
Kaydet (Commit)
271ade87
authored
Tem 25, 2013
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#18503: small cleanups in test_email.
Patch by Vajrasky Kok.
üst
9228837e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_email.py
Lib/test/test_email/test_email.py
+2
-2
No files found.
Lib/test/test_email/test_email.py
Dosyayı görüntüle @
271ade87
...
@@ -388,6 +388,7 @@ class TestMessageAPI(TestEmailBase):
...
@@ -388,6 +388,7 @@ class TestMessageAPI(TestEmailBase):
def
test_del_param_on_nonexistent_header
(
self
):
def
test_del_param_on_nonexistent_header
(
self
):
msg
=
Message
()
msg
=
Message
()
# Deleting param on empty msg should not raise exception.
msg
.
del_param
(
'filename'
,
'content-disposition'
)
msg
.
del_param
(
'filename'
,
'content-disposition'
)
def
test_del_nonexistent_param
(
self
):
def
test_del_nonexistent_param
(
self
):
...
@@ -395,7 +396,7 @@ class TestMessageAPI(TestEmailBase):
...
@@ -395,7 +396,7 @@ class TestMessageAPI(TestEmailBase):
msg
.
add_header
(
'Content-Type'
,
'text/plain'
,
charset
=
'utf-8'
)
msg
.
add_header
(
'Content-Type'
,
'text/plain'
,
charset
=
'utf-8'
)
existing_header
=
msg
[
'Content-Type'
]
existing_header
=
msg
[
'Content-Type'
]
msg
.
del_param
(
'foobar'
,
header
=
'Content-Type'
)
msg
.
del_param
(
'foobar'
,
header
=
'Content-Type'
)
self
.
assertEqual
(
msg
[
'Content-Type'
],
'text/plain; charset="utf-8"'
)
self
.
assertEqual
(
msg
[
'Content-Type'
],
existing_header
)
def
test_set_type
(
self
):
def
test_set_type
(
self
):
eq
=
self
.
assertEqual
eq
=
self
.
assertEqual
...
@@ -2265,7 +2266,6 @@ class TestMIMEMessage(TestEmailBase):
...
@@ -2265,7 +2266,6 @@ class TestMIMEMessage(TestEmailBase):
eq
(
subpart
[
'subject'
],
subject
)
eq
(
subpart
[
'subject'
],
subject
)
def
test_bad_multipart
(
self
):
def
test_bad_multipart
(
self
):
eq
=
self
.
assertEqual
msg1
=
Message
()
msg1
=
Message
()
msg1
[
'Subject'
]
=
'subpart 1'
msg1
[
'Subject'
]
=
'subpart 1'
msg2
=
Message
()
msg2
=
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