<s> from datetime import datetime <EOL> import sqlalchemy as sa <EOL> from sqlalchemy_utils import TSVectorType <EOL> from tests import ModelFormTestCase <EOL> class TestFieldExclusion ( ModelFormTestCase ) : <EOL> def test_does_not_include_datetime_columns_with_default ( self ) : <EOL> self . init ( sa . DateTime , default = datetime . now ( ) ) <EOL> assert not self . has_field ( '<STR_LIT>' ) <EOL> def test_excludes_surrogate_primary_keys_by_default ( self ) : <EOL> self . init ( ) <EOL> assert not self . has_field ( '<STR_LIT:id>' ) <EOL> def test_excludes_column_properties ( self ) : <EOL> self . init ( ) <EOL> self . ModelTest . calculated_value = sa . orm . column_property ( <EOL> sa . func . lower ( self . ModelTest . test_column ) <EOL> ) <EOL> self . init_form ( ) <EOL> self . form_class ( ) <EOL> class TestTSVectorType ( ModelFormTestCase ) : <EOL> def test_does_not_include_tsvector_typed_columns_with_default ( self ) : <EOL> self . init ( TSVectorType ) <EOL> assert not self . has_field ( '<STR_LIT>' ) </s>
