'Test to validate that decimal deserialization works correctly in with our cython extensions
@since 3.0.0
@jira_ticket PYTHON-212
@expected_result no exceptions are thrown, decimal is decoded correctly
@test_category data_types serialization'

@cythontest
def test_cython_decimal(self):

    self.session.execute('CREATE    TABLE    {0}    (dc    decimal    PRIMARY    KEY)'.format(self.function_table_name))
    try:
        self.session.execute('INSERT    INTO    {0}    (dc)    VALUES    (-1.08430792318105707)'.format(self.function_table_name))
        results = self.session.execute('SELECT    *    FROM    {0}'.format(self.function_table_name))
        self.assertTrue((str(results[0].dc) == '-1.08430792318105707'))
    finally:
        self.session.execute('DROP    TABLE    {0}'.format(self.function_table_name))
