'Check if field icon is present.'

def icon_for_field(self, field_id, icon_id):

    self.wait_for_field(field_id)
    query = self.q(css='.u-field-{}    .u-field-icon'.format(field_id))
    return (query.present and (icon_id in query.attrs('class')[0].split()))
