Did I find the right examples for you? yes no

All Samples(25)  |  Call(24)  |  Derive(0)  |  Import(1)

src/d/e/deform_bootstrap-0.2.9/deform_bootstrap/tests/test_widget.py   deform_bootstrap(Download)
import json
import unittest
 
from deform.tests.test_widget import DummyField, DummyRenderer, DummySchema
 
    def test_serialize_null(self):
        from colander import null
        widget = self._makeOne()
        renderer = DummyRenderer()
        field = DummyField(None, renderer=renderer)
    def test_serialize_None(self):
        widget = self._makeOne()
        renderer = DummyRenderer()
        field = DummyField(None, renderer=renderer)
        widget.serialize(field, None)
        renderer = DummyRenderer()
        schema = DummySchema()
        field = DummyField(schema, renderer=renderer)
        cstruct = 'abc'
        widget.serialize(field, cstruct)
        renderer = DummyRenderer()
        schema = DummySchema()
        field = DummyField(schema, renderer=renderer)
        cstruct = 'abc'
        widget.serialize(field, cstruct)