#NEWLINE# def test_checkbox_form( self ) : #NEWLINE# #INDENT# response = self . client . get ( '/checkbox-field-form' ) #NEWLINE# response = response . form . submit ( self . client ) #NEWLINE# assert ( 'Checkbox did not check' in self . data ) #NEWLINE# response . form . fields [ 'checkbox_field' ] = True #NEWLINE# response = response . form . submit ( self . client ) #NEWLINE# assert ( 'Checkbox checked' in response . data )