@pytest.mark.django_db
def test_specialchars_can_be_blank():
 form_data = {'code': 'foo', 'fullname': 'Foo', 'checkstyle': 'foo', 'nplurals': '2', 'specialchars': ''}
 form = LanguageForm(form_data)
 assert form.is_valid()
 assert (form.cleaned_data['specialchars'] == '')

@ pytest . mark . django_db def test_specialchars_can_be_blank ( ) : form_data = { 'code' : 'foo' , 'fullname' : 'Foo' , 'checkstyle' : 'foo' , 'nplurals' : '2' , 'specialchars' : '' } form = LanguageForm ( form_data ) assert form . is_valid ( ) assert ( form . cleaned_data [ 'specialchars' ] == '' )
test that a blank special character field is valid .