'Test to validate that unicode query strings are handled appropriately by various query types
@since 3.0.0
@jira_ticket PYTHON-334
@expected_result no unicode exceptions are thrown
@test_category query'

def test_unicode(self):

    unicode_text = u'Fran\xe7ois'
    batch = BatchStatement(BatchType.LOGGED)
    batch.add(u'INSERT    INTO    {0}.{1}    (k,    v)    VALUES    (%s,    %s)'.format(self.keyspace_name, self.function_table_name), (0, unicode_text))
    self.session.execute(batch)
    self.session.execute(u'INSERT    INTO    {0}.{1}    (k,    v)    VALUES    (%s,    %s)'.format(self.keyspace_name, self.function_table_name), (0, unicode_text))
    prepared = self.session.prepare(u'INSERT    INTO    {0}.{1}    (k,    v)    VALUES    (?,    ?)'.format(self.keyspace_name, self.function_table_name))
    bound = prepared.bind((1, unicode_text))
    self.session.execute(bound)
