1. Dan Jacob
  2. pyramid_simpleform
  3. Issues
Issue #7 new

creating a checkbox with an initial state of checked does not work

created an issue

The test below should pass, but fails:



def test_checkbox_initialize_checked(self): from pyramid_simpleform.form import Form from pyramid_simpleform.renderers import FormRenderer

request = testing.DummyRequest()
form = Form(request, SimpleFESchema)

renderer = FormRenderer(form)

self.assert_(renderer.checkbox("name", checked=True) == \
    '<input checked="checked" id="name" name="name" type="checkbox" '
    'value="1" />')


Comments (1)

  1. Log in to comment