'\'Connection\' object has no attribute \'insert_id\''

def test_issue_66(self):

    conn = self.connections[0]
    c = conn.cursor()
    self.assertEqual(0, conn.insert_id())
    try:
        with warnings.catch_warnings():
            warnings.filterwarnings('ignore')
            c.execute('drop    table    if    exists    issue66')
        c.execute('create    table    issue66    (id    integer    primary    key    auto_increment,    x    integer)')
        c.execute('insert    into    issue66    (x)    values    (1)')
        c.execute('insert    into    issue66    (x)    values    (1)')
        self.assertEqual(2, conn.insert_id())
    finally:
        c.execute('drop    table    issue66')
