def test_sync_index(self):
        sync_table(IndexModel)
        table_meta = management._get_table_metadata(IndexModel)
        self.assertIsNotNone(management._get_index_name_by_column(table_meta, 'second_key'))

        # index already exists
        sync_table(IndexModel)
        table_meta = management._get_table_metadata(IndexModel)
        self.assertIsNotNone(management._get_index_name_by_column(table_meta, 'second_key'))
Tests the default table creation, and ensures the table_name is created and surfaced correctly
dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/management/test_management.py/IndexTests.test_sync_index