# coding: utf-8 from utils.test_config import * from utils.string_utils import * from helix_web_services_client.models import BranchCommand api = api_as_super() protections = api.server_protections_get('localhost') original_protections = list(protections.protections) assert len(protections.protections) >= 2 protections.protections.append('super user jdoe * //...') api.server_protections_put('localhost', protections) updated = api.server_protections_get('localhost') assert updated.protections == protections.protections protections.protections = original_protections command = api.server_protections_put('localhost', protections)