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
6f87a08a
Kaydet (Commit)
6f87a08a
authored
Kas 16, 2013
tarafından
Jason R. Coombs
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update more usage of assertEqual
üst
e9f0311a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
test_archive_util.py
Lib/distutils/tests/test_archive_util.py
+2
-2
test_upload.py
Lib/distutils/tests/test_upload.py
+3
-3
test_strftime.py
Lib/test/test_strftime.py
+3
-3
No files found.
Lib/distutils/tests/test_archive_util.py
Dosyayı görüntüle @
6f87a08a
...
...
@@ -329,8 +329,8 @@ class ArchiveUtilTestCase(support.TempdirManager,
archive
=
tarfile
.
open
(
archive_name
)
try
:
for
member
in
archive
.
getmembers
():
self
.
assertEqual
s
(
member
.
uid
,
0
)
self
.
assertEqual
s
(
member
.
gid
,
0
)
self
.
assertEqual
(
member
.
uid
,
0
)
self
.
assertEqual
(
member
.
gid
,
0
)
finally
:
archive
.
close
()
...
...
Lib/distutils/tests/test_upload.py
Dosyayı görüntüle @
6f87a08a
...
...
@@ -115,9 +115,9 @@ class uploadTestCase(PyPIRCCommandTestCase):
headers
=
dict
(
self
.
last_open
.
req
.
headers
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'2087'
)
self
.
assert_
(
headers
[
'Content-type'
]
.
startswith
(
'multipart/form-data'
))
self
.
assertEqual
s
(
self
.
last_open
.
req
.
get_method
(),
'POST'
)
self
.
assertEquals
(
self
.
last_open
.
req
.
get_full_url
(),
'https://pypi.python.org/pypi'
)
self
.
assertEqual
(
self
.
last_open
.
req
.
get_method
(),
'POST'
)
expected_url
=
'https://pypi.python.org/pypi'
self
.
assertEqual
(
self
.
last_open
.
req
.
get_full_url
(),
expected_url
)
self
.
assert_
(
b
'xxx'
in
self
.
last_open
.
req
.
data
)
def
test_suite
():
...
...
Lib/test/test_strftime.py
Dosyayı görüntüle @
6f87a08a
...
...
@@ -189,15 +189,15 @@ class Y1900Tests(unittest.TestCase):
@unittest.skipIf
(
sys
.
platform
==
"win32"
,
"Doesn't apply on Windows"
)
def
test_y_before_1900_nonwin
(
self
):
self
.
assertEqual
s
(
self
.
assertEqual
(
time
.
strftime
(
"
%
y"
,
(
1899
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
)),
"99"
)
def
test_y_1900
(
self
):
self
.
assertEqual
s
(
self
.
assertEqual
(
time
.
strftime
(
"
%
y"
,
(
1900
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
)),
"00"
)
def
test_y_after_1900
(
self
):
self
.
assertEqual
s
(
self
.
assertEqual
(
time
.
strftime
(
"
%
y"
,
(
2013
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
)),
"13"
)
if
__name__
==
'__main__'
:
...
...
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