Exemplo n.º 1
0
Arquivo: gpo.py Projeto: rti7743/samba
def gpo_flags_string(value):
    '''return gpo flags string'''
    flags = policy.get_gpo_flags(value)
    if not flags:
        ret = 'NONE'
    else:
        ret = ' '.join(flags)
    return ret
Exemplo n.º 2
0
 def test_get_gpo_flags(self):
     self.assertEquals(["GPO_FLAG_USER_DISABLE"],
         policy.get_gpo_flags(policy.GPO_FLAG_USER_DISABLE))