@pytest.mark.parametrize('checked', [True, False])
def test_checkboxes_should_return_checked_and_errors(self, form_with_checkbox, checked):
    form = form_with_checkbox(first_name='Erika', i_agree=checked)
    props = form_fields_dict(form)
    assert (props == {'first_name': {'value': 'Erika', 'errors': []}, 'i_agree': {'checked': checked, 'errors': []}})
@pytest.mark.parametrize('checked', [True, False])
def test_checkboxes_should_return_checked_and_errors(self, form_with_checkbox, checked):
    form = form_with_checkbox(first_name='Erika', i_agree=checked)
    props = form_fields_dict(form)
    assert (props == {'first_name': {'value': 'Erika', 'errors': []}, 'i_agree': {'checked': checked, 'errors': []}})