def setUp(self): if not self.not_configured: computer_policy = { "Point and Print Restrictions": "Not Configured" } win_lgpo.set_(computer_policy=computer_policy) self.not_configured = True
def setUp(self): if not self.configured: computer_policy = { "Point and Print Restrictions": { "Users can only point and print to these servers": True, "Enter fully qualified server names separated by semicolons": ("fakeserver1;fakeserver2"), "Users can only point and print to machines in their forest": True, "When installing drivers for a new connection": ("Show warning and elevation prompt"), "When updating drivers for an existing connection": ("Show warning only"), }, } win_lgpo.set_(computer_policy=computer_policy) self.configured = True
def setUp(self): if not self.configured: computer_policy = { 'Point and Print Restrictions': { 'Users can only point and print to these servers': True, 'Enter fully qualified server names separated by ' 'semicolons': 'fakeserver1;fakeserver2', 'Users can only point and print to machines in their ' 'forest': True, 'When installing drivers for a new connection': 'Show warning and elevation prompt', 'When updating drivers for an existing connection': 'Show warning only', }, } win_lgpo.set_(computer_policy=computer_policy) self.configured = True