'Test load local infile when the file does not exist'

def test_no_file(self):

    conn = self.connections[0]
    c = conn.cursor()
    c.execute('CREATE    TABLE    test_load_local    (a    INTEGER,    b    INTEGER)')
    try:
        self.assertRaises(OperationalError, c.execute, "LOAD    DATA    LOCAL    INFILE    'no_data.txt'    INTO    TABLE    test_load_local    fields    terminated    by    ','")
    finally:
        c.execute('DROP    TABLE    test_load_local')
        c.close()
