'Test to ensure that changes to primary keys throw CQLEngineExceptions
@since 3.2
@jira_ticket PYTHON-532
@expected_result Attempts to modify primary keys throw an exception
@test_category object_mapper'

def test_primary_key_validation(self):

    sync_table(PrimaryKeysOnlyModel)
    self.assertRaises(CQLEngineException, sync_table, PrimaryKeysModelChanged)
    self.assertRaises(CQLEngineException, sync_table, PrimaryKeysAddedClusteringKey)
    self.assertRaises(CQLEngineException, sync_table, PrimaryKeysRemovedPk)
