Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
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
django
Commits
129f4900
Kaydet (Commit)
129f4900
authored
Eyl 27, 2017
tarafından
Mads Jensen
Kaydeden (comit)
Tim Graham
Eyl 28, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added tests for RequestSite.__init__() and __str__().
üst
2015f5f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tests.py
tests/sites_tests/tests.py
+7
-0
No files found.
tests/sites_tests/tests.py
Dosyayı görüntüle @
129f4900
...
...
@@ -214,6 +214,13 @@ class RequestSiteTests(SimpleTestCase):
request
.
META
=
{
'HTTP_HOST'
:
'example.com'
}
self
.
site
=
RequestSite
(
request
)
def
test_init_attributes
(
self
):
self
.
assertEqual
(
self
.
site
.
domain
,
'example.com'
)
self
.
assertEqual
(
self
.
site
.
name
,
'example.com'
)
def
test_str
(
self
):
self
.
assertEqual
(
str
(
self
.
site
),
'example.com'
)
def
test_save
(
self
):
msg
=
'RequestSite cannot be saved.'
with
self
.
assertRaisesMessage
(
NotImplementedError
,
msg
):
...
...
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