def test_unicode_list_parameter(self):
    values = [u'ñ', 'foo', 3]
    query = u'SELECT {0}'.format(', '.join((['%s'] * len(values))))
    with self._connect() as conn:
        cur = conn.cursor()
        cur.execute(query, tuple(values))
        results = cur.fetchone()
    for (val, res) in zip(values, results):
        self.assertResultEqual(val, res)
def test_unicode_list_parameter(self):
    values = [u'ñ', 'foo', 3]
    query = u'SELECT {0}'.format(', '.join((['%s'] * len(values))))
    with self._connect() as conn:
        cur = conn.cursor()
        cur.execute(query, tuple(values))
        results = cur.fetchone()
    for (val, res) in zip(values, results):
        self.assertResultEqual(val, res)