tests Package

models Module

class kawaz.core.db.tests.models.EvenNumberContainer(*args, **kwargs)[ソース]

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

A test model which does not allow to store odd number

exception DoesNotExist

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

exception EvenNumberContainer.MultipleObjectsReturned

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

EvenNumberContainer.clean()[ソース]
EvenNumberContainer.id

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

EvenNumberContainer.number

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

EvenNumberContainer.objects = <django.db.models.manager.Manager object>

test_decorators Module

class kawaz.core.db.tests.test_decorators.ValidationOnSaveDecoratorTestCase(methodName='runTest')[ソース]

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

test_non_validate_on_save()[ソース]

full_clean method should not be called without validate_on_save decorator

test_validate_on_save()[ソース]

full_clean method should be called with validate_on_save decorator

test_validate_on_save_disabled()[ソース]

full_clean method should not be called with VALIDATE_ON_SAVE_DISABLE