sqlobject.tests.test_validation module

class sqlobject.tests.test_validation.SOTestValidator(*args, **kw)[source]

Bases: formencode.api.Validator

Messages

declarative_count = 377
from_python(value, state)[source]
to_python(value, state)[source]
class sqlobject.tests.test_validation.SOValidation(**kw)[source]

Bases: sqlobject.main.SQLObject

j = so_validation
name
name2
name3
name4
name5
name6
name7
name8
name9
q = so_validation
class sqlmeta(instance)

Bases: sqlobject.main.sqlmeta

childName = None
columnDefinitions = {'name4': <FloatCol b3e66a8c name4>, 'name5': <PickleCol b3e6634c name5>, 'name3': <IntCol b3e666ec name3>, 'name7': <UnicodeCol b3e6624c name7>, 'name': <StringCol b3e66d4c name>, 'name9': <IntCol b3e66d8c name9>, 'name8': <IntCol b3e663ec name8>, 'name2': <StringCol b3e66dac name2>, 'name6': <BoolCol b3e6610c name6>}
columnList = [<SOStringCol name default='x'>, <SOStringCol name2 default='y'>, <SOIntCol name3 default=100>, <SOFloatCol name4 default=2.718>, <SOPickleCol name5 default=None>, <SOBoolCol name6 default=None>, <SOUnicodeCol name7 default=None>, <SOIntCol name8 default=None>, <SOIntCol name9 default=0>]
columns = {'name4': <SOFloatCol name4 default=2.718>, 'name5': <SOPickleCol name5 default=None>, 'name3': <SOIntCol name3 default=100>, 'name7': <SOUnicodeCol name7 default=None>, 'name': <SOStringCol name default='x'>, 'name9': <SOIntCol name9 default=0>, 'name8': <SOIntCol name8 default=None>, 'name2': <SOStringCol name2 default='y'>, 'name6': <SOBoolCol name6 default=None>}
idName = 'id'
indexDefinitions = []
indexes = []
joinDefinitions = []
joins = []
soClass

alias of SOValidation

style = <sqlobject.styles.MixedCaseUnderscoreStyle object>
table = 'so_validation'
class sqlobject.tests.test_validation.SOValidationTest(value)[source]

Bases: object

class sqlobject.tests.test_validation.SOValidationTestBool(value)[source]

Bases: sqlobject.tests.test_validation.SOValidationTest

class sqlobject.tests.test_validation.SOValidationTestFloat(value)[source]

Bases: sqlobject.tests.test_validation.SOValidationTest

class sqlobject.tests.test_validation.SOValidationTestInt(value)[source]

Bases: sqlobject.tests.test_validation.SOValidationTest

class sqlobject.tests.test_validation.TestValidation[source]

Bases: object

setup_method(meth)[source]
test_confirmType()[source]
test_emptyValue()[source]
test_validate()[source]
test_validator2()[source]
test_wrapType()[source]