'Test that names that need to be escaped in CREATE statements are'

@greaterthancass21
def test_case_sensitivity(self):

    cluster = Cluster(protocol_version=PROTOCOL_VERSION)
    session = cluster.connect()
    ksname = 'AnInterestingKeyspace'
    cfname = 'AnInterestingTable'
    session.execute('DROP    KEYSPACE    IF    EXISTS    {0}'.format(ksname))
    session.execute(('\n                                                CREATE    KEYSPACE    "%s"\n                                                WITH    replication    =    {\'class\':    \'SimpleStrategy\',    \'replication_factor\':    \'1\'}\n                                                ' % (ksname,)))
    session.execute(('\n                                                CREATE    TABLE    "%s"."%s"    (\n                                                                k    int,\n                                                                "A"    int,\n                                                                "B"    int,\n                                                                "MyColumn"    int,\n                                                                PRIMARY    KEY    (k,    "A"))\n                                                WITH    CLUSTERING    ORDER    BY    ("A"    DESC)\n                                                ' % (ksname, cfname)))
    session.execute(('\n                                                CREATE    INDEX    myindex    ON    "%s"."%s"    ("MyColumn")\n                                                ' % (ksname, cfname)))
    session.execute(('\n                                                CREATE    INDEX    "AnotherIndex"    ON    "%s"."%s"    ("B")\n                                                ' % (ksname, cfname)))
    ksmeta = cluster.metadata.keyspaces[ksname]
    schema = ksmeta.export_as_string()
    self.assertIn('CREATE    KEYSPACE    "AnInterestingKeyspace"', schema)
    self.assertIn('CREATE    TABLE    "AnInterestingKeyspace"."AnInterestingTable"', schema)
    self.assertIn('"A"    int', schema)
    self.assertIn('"B"    int', schema)
    self.assertIn('"MyColumn"    int', schema)
    self.assertIn('PRIMARY    KEY    (k,    "A")', schema)
    self.assertIn('WITH    CLUSTERING    ORDER    BY    ("A"    DESC)', schema)
    self.assertIn('CREATE    INDEX    myindex    ON    "AnInterestingKeyspace"."AnInterestingTable"    ("MyColumn")', schema)
    self.assertIn('CREATE    INDEX    "AnotherIndex"    ON    "AnInterestingKeyspace"."AnInterestingTable"    ("B")', schema)
    cluster.shutdown()
