<s> from tests import ModelFormTestCase <EOL> from wtforms_alchemy import ModelForm <EOL> class TestFieldLabels ( ModelFormTestCase ) : <EOL> def test_assigns_labels_from_column_info ( self ) : <EOL> self . init ( info = { '<STR_LIT:label>' : '<STR_LIT>' } ) <EOL> self . assert_label ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def test_assigns_labels_from_form_configuration ( self ) : <EOL> self . init ( ) <EOL> class ModelTestForm ( ModelForm ) : <EOL> class Meta : <EOL> model = self . ModelTest <EOL> field_args = { <EOL> '<STR_LIT>' : { '<STR_LIT:label>' : '<STR_LIT>' } <EOL> } <EOL> self . form_class = ModelTestForm <EOL> self . assert_label ( '<STR_LIT>' , '<STR_LIT>' ) </s>
