'Tests for db_field UserTypeDefinitionException
Test so that when we override a model\'s default field witha  db_field that it errors appropriately
@since 3.1.0
@jira_ticket PYTHON-346
@expected_result Setting a db_field to an existing field causes an exception to occur.
@test_category data_types:udt'

def test_db_field_overload(self):

    with self.assertRaises(UserTypeDefinitionException):
        class something_silly(UserType, ):
            first_col = columns.Integer()
            second_col = columns.Text(db_field='first_col')
    with self.assertRaises(UserTypeDefinitionException):
        class something_silly_2(UserType, ):
            first_col = columns.Integer(db_field='second_col')
            second_col = columns.Text()
