'Test export keyspace schema functionality'

def test_export_keyspace_schema(self):

    cluster = Cluster(protocol_version=PROTOCOL_VERSION)
    cluster.connect()
    for keyspace in cluster.metadata.keyspaces:
        keyspace_metadata = cluster.metadata.keyspaces[keyspace]
        self.assertIsInstance(keyspace_metadata.export_as_string(), six.string_types)
        self.assertIsInstance(keyspace_metadata.as_cql_query(), six.string_types)
    cluster.shutdown()
