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
47b5ddb9
Kaydet (Commit)
47b5ddb9
authored
Mar 13, 2012
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
üst
1732ab4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
test_cgi.py
Lib/test/test_cgi.py
+5
-0
No files found.
Lib/test/test_cgi.py
Dosyayı görüntüle @
47b5ddb9
...
...
@@ -118,6 +118,11 @@ def gen_result(data, environ):
class
CgiTests
(
unittest
.
TestCase
):
def
test_escape
(
self
):
self
.
assertEqual
(
"test & string"
,
cgi
.
escape
(
"test & string"
))
self
.
assertEqual
(
"<test string>"
,
cgi
.
escape
(
"<test string>"
))
self
.
assertEqual
(
""test string""
,
cgi
.
escape
(
'"test string"'
,
True
))
def
test_strict
(
self
):
for
orig
,
expect
in
parse_strict_test_cases
:
# Test basic parsing
...
...
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