#NEWLINE# @ only_bootstrap3 #NEWLINE# def test_label_class_and_field_class( ) : #NEWLINE# #INDENT# form = TestForm ( ) #NEWLINE# form . helper = FormHelper ( ) #NEWLINE# form . helper . label_class = 'col-lg-2' #NEWLINE# form . helper . field_class = 'col-lg-8' #NEWLINE# html = render_crispy_form ( form ) #NEWLINE# assert '<div class="form-group"> <div class="controls col-lg-offset-2 col-lg-8"> <div id="div_id_is_company" class="checkbox"> <label for="id_is_company" class=""> <input class="checkboxinput checkbox" id="id_is_company" name="is_company" type="checkbox" />' #NEWLINE# assert ( html . count ( 'col-lg-8' ) == 7 ) #NEWLINE# form . helper . label_class = 'col-sm-3' #NEWLINE# form . helper . field_class = 'col-sm-8' #NEWLINE# html = render_crispy_form ( form ) #NEWLINE# assert '<div class="form-group"> <div class="controls col-sm-offset-3 col-sm-8"> <div id="div_id_is_company" class="checkbox"> <label for="id_is_company" class=""> <input class="checkboxinput checkbox" id="id_is_company" name="is_company" type="checkbox" />' #NEWLINE# assert ( html . count ( 'col-sm-8' ) == 7 )