tests Package

tests Package

models Module

kawaz.core.views.tests.models.Article

SingleObjectPreviewViewMixinTestArticle のエイリアス

class kawaz.core.views.tests.models.SingleObjectPreviewViewMixinTestArticle(id, foo, bar)[ソース]

ベースクラス: django.db.models.base.Model

exception DoesNotExist

ベースクラス: django.core.exceptions.ObjectDoesNotExist

exception SingleObjectPreviewViewMixinTestArticle.MultipleObjectsReturned

ベースクラス: django.core.exceptions.MultipleObjectsReturned

SingleObjectPreviewViewMixinTestArticle.bar

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SingleObjectPreviewViewMixinTestArticle.foo

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SingleObjectPreviewViewMixinTestArticle.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

SingleObjectPreviewViewMixinTestArticle.objects = <django.db.models.manager.Manager object>
kawaz.core.views.tests.models.alias(name)[ソース]

Define alias name of the class

test_preview Module

class kawaz.core.views.tests.test_preview.KawazSingleObjectPreviewViewMixinTestCase(methodName='runTest')[ソース]

ベースクラス: django.test.testcases.TestCase

setUp()[ソース]
test_get_object_with_get_queryset()[ソース]

Modelに存在しないアトリビュートは削除される (get_queryset)

test_get_object_with_model()[ソース]

Modelに存在しないアトリビュートは削除される (model)

test_get_object_with_queryset()[ソース]

Modelに存在しないアトリビュートは削除される (queryset)

test_has_get_object_method()[ソース]

get_objectメソッドを所有する

test_roughpages Module

test_statics Module

class kawaz.core.views.tests.test_statics.ErrorPageTestCase(methodName='runTest')[ソース]

ベースクラス: django.test.testcases.TestCase

test_render_404()[ソース]

本番環境でカスタム404ページが描画できる