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)
    def test_serialize_iterable(self):
        widget = self._makeOne()
        values = [1, 2, 3, 4]
        widget.values = values
        renderer = DummyRenderer()
    def test_serialize_remote(self):
        widget = self._makeOne(min_length=2, items=5)
        values = '/items'
        widget.source = values
        renderer = DummyRenderer()