tests Package

tests Package

models Module

kawaz.core.views.tests.models.Article

alias of SingleObjectPreviewViewMixinTestArticle

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

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception SingleObjectPreviewViewMixinTestArticle.MultipleObjectsReturned

Bases: 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)[source]

Define alias name of the class

test_preview Module

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

Bases: django.test.testcases.TestCase

setUp()[source]
test_get_object_with_get_queryset()[source]

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

test_get_object_with_model()[source]

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

test_get_object_with_queryset()[source]

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

test_has_get_object_method()[source]

get_objectメソッドを所有する

test_roughpages Module

test_statics Module

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

Bases: django.test.testcases.TestCase

test_render_404()[source]

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