'Test to ensure that CompositeTypes can be used in a query'

def test_can_read_composite_type(self):

    s = self.session
    s.execute("\n                                                CREATE    TABLE    composites    (\n                                                                a    int    PRIMARY    KEY,\n                                                                b    'org.apache.cassandra.db.marshal.CompositeType(AsciiType,    Int32Type)'\n                                                )")
    s.execute("INSERT    INTO    composites    (a,    b)    VALUES    (0,    'abc:123')")
    result = s.execute('SELECT    *    FROM    composites    WHERE    a    =    0')[0]
    self.assertEqual(0, result.a)
    self.assertEqual(('abc', 123), result.b)
    s.execute("INSERT    INTO    composites    (a,    b)    VALUES    (0,    'abc')")
    result = s.execute('SELECT    *    FROM    composites    WHERE    a    =    0')[0]
    self.assertEqual(0, result.a)
    self.assertEqual(('abc',), result.b)
