hunk.code_window:         send_email(self.to, self.subject, self.html_content, cc=self.cc, bcc=self.bcc,
                      personalization_custom_args=self.personalization_custom_args,
                      categories=self.categories)
           mock_post.assert_called_with(self.expected_mail_data_extras)
  
hunk.labels: keep keep keep add
hunk.after_edit:     @mock.patch('os.environ.get')
       @mock.patch('airflow.contrib.utils.sendgrid._post_sendgrid_mail')
       def test_send_email_sendgrid_sender(self, mock_post, mock_get):
           mock_get.return_value = None
           send_email(self.to, self.subject, self.html_content, cc=self.cc, bcc=self.bcc,
                      from_email='foo@foo.bar', from_name='Foo Bar')
           mock_post.assert_called_with(self.expected_mail_data_sender)
hunk.file_path: tests/contrib/utils/test_sendgrid.py
hunk.type: add
file: #
  # Licensed to the Apache Software Foundation (ASF) under one
  # or more contributor license agreements.  See the NOTICE file
  # distributed with this work for additional information
  # regarding copyright ownership.  The ASF licenses this file
  # to you under the Apache License, Version 2.0 (the
  # "License"); you may not use this file except in compliance
  # with the License.  You may obtain a copy of the License at
  # 
  #   http://www.apache.org/licenses/LICENSE-2.0
  # 
  # Unless required by applicable law or agreed to in writing,
  # software distributed under the License is distributed on an
  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  # KIND, either express or implied.  See the License for the
  # specific language governing permissions and limitations
  # under the License.
  
  dn: dc=example,dc=com
  dc: example
  description: LDAP Example
  objectClass: dcObject
  objectClass: organization
  o: example
  