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
bd18fd67
Kaydet (Commit)
bd18fd67
authored
Eyl 08, 2008
tarafından
Facundo Batista
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added sanity checks for the deprecated parse_qs() and
parse_qsl() functions in cgi module.
üst
3856c376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
test_cgi.py
Lib/test/test_cgi.py
+10
-0
No files found.
Lib/test/test_cgi.py
Dosyayı görüntüle @
bd18fd67
...
@@ -306,6 +306,16 @@ this is the content of the fake file
...
@@ -306,6 +306,16 @@ this is the content of the fake file
v
=
gen_result
(
data
,
environ
)
v
=
gen_result
(
data
,
environ
)
self
.
assertEqual
(
result
,
v
)
self
.
assertEqual
(
result
,
v
)
def
test_deprecated_parse_qs
(
self
):
# this func is moved to urlparse, this is just a sanity check
self
.
assertEqual
({
'a'
:
[
'A1'
],
'B'
:
[
'B3'
],
'b'
:
[
'B2'
]},
cgi
.
parse_qs
(
'a=A1&b=B2&B=B3'
))
def
test_deprecated_parse_qsl
(
self
):
# this func is moved to urlparse, this is just a sanity check
self
.
assertEqual
([(
'a'
,
'A1'
),
(
'b'
,
'B2'
),
(
'B'
,
'B3'
)],
cgi
.
parse_qsl
(
'a=A1&b=B2&B=B3'
))
def
test_main
():
def
test_main
():
run_unittest
(
CgiTests
)
run_unittest
(
CgiTests
)
...
...
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