hunk.code_window:         cur.execute("""
               LOAD DATA LOCAL INFILE '{tmp_file}'
               INTO TABLE {table}
               """.format(**locals()))
           conn.commit()
  
hunk.labels: keep keep keep keep add
hunk.after_edit:     @staticmethod
       def _serialize_cell(cell, conn):
           """
           Returns the MySQL literal of the cell as a string.
           :param cell: The cell to insert into the table
           :type cell: object
           :param conn: The database connection
           :type conn: connection object
           :return: The serialized cell
           :rtype: str
           """
           return conn.literal(cell)
hunk.file_path: airflow/hooks/mysql_hook.py
hunk.type: add
file: # -*- coding: utf-8 -*-
  #
  # Licensed 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.
  
  import unittest
  
  from airflow.ti_deps.deps.pool_has_space_dep import PoolHasSpaceDep
  from fake_models import FakeTI
  
  
  class PoolHasSpaceDepTest(unittest.TestCase):
  
      def test_pool_full(self):
          """
          Full pools should fail this dep
          """
          ti = FakeTI(pool="fake_pool", pool_filled=True)
  
          self.assertFalse(PoolHasSpaceDep().is_met(ti=ti, dep_context=None))
  
      def test_not_skipped(self):
          """
          Pools with room should pass this dep
          """
          ti = FakeTI(pool="fake_pool", pool_filled=False)
  
          self.assertTrue(PoolHasSpaceDep().is_met(ti=ti, dep_context=None))
  