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
e51e25a3
Kaydet (Commit)
e51e25a3
authored
Haz 17, 2012
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge from 3.2 (Issue #15095: Use better assertions in test_imaplib)
üst
9aff2a7c
e6ef4622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test_imaplib.py
Lib/test/test_imaplib.py
+5
-5
No files found.
Lib/test/test_imaplib.py
Dosyayı görüntüle @
e51e25a3
...
...
@@ -233,8 +233,8 @@ class RemoteIMAPTest(unittest.TestCase):
with
transient_internet
(
self
.
host
):
for
cap
in
self
.
server
.
capabilities
:
self
.
assertIsInstance
(
cap
,
str
)
self
.
assert
True
(
'LOGINDISABLED'
in
self
.
server
.
capabilities
)
self
.
assert
True
(
'AUTH=ANONYMOUS'
in
self
.
server
.
capabilities
)
self
.
assert
In
(
'LOGINDISABLED'
,
self
.
server
.
capabilities
)
self
.
assert
In
(
'AUTH=ANONYMOUS'
,
self
.
server
.
capabilities
)
rs
=
self
.
server
.
login
(
self
.
username
,
self
.
password
)
self
.
assertEqual
(
rs
[
0
],
'OK'
)
...
...
@@ -257,7 +257,7 @@ class RemoteIMAP_STARTTLSTest(RemoteIMAPTest):
def
test_logincapa
(
self
):
for
cap
in
self
.
server
.
capabilities
:
self
.
assertIsInstance
(
cap
,
str
)
self
.
assert
False
(
'LOGINDISABLED'
in
self
.
server
.
capabilities
)
self
.
assert
NotIn
(
'LOGINDISABLED'
,
self
.
server
.
capabilities
)
@unittest.skipUnless
(
ssl
,
"SSL not available"
)
...
...
@@ -280,8 +280,8 @@ class RemoteIMAP_SSLTest(RemoteIMAPTest):
try
:
for
cap
in
server
.
capabilities
:
self
.
assertIsInstance
(
cap
,
str
)
self
.
assert
False
(
'LOGINDISABLED'
in
server
.
capabilities
)
self
.
assert
True
(
'AUTH=PLAIN'
in
server
.
capabilities
)
self
.
assert
NotIn
(
'LOGINDISABLED'
,
server
.
capabilities
)
self
.
assert
In
(
'AUTH=PLAIN'
,
server
.
capabilities
)
rs
=
server
.
login
(
self
.
username
,
self
.
password
)
self
.
assertEqual
(
rs
[
0
],
'OK'
)
finally
:
...
...
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