'cn=granted-access-to-all,ou=hostaccessgroups,ou=groups,dc=example,dc=com',
        'cn=JuniperGuest,ou=network,ou=accessgroups,ou=groups,dc=example,dc=com',
        'cn=Directory Administrators,dc=example,dc=com',
        'cn=ucsadmins,ou=accessgroups,ou=groups,dc=example,dc=com',
        'cn=vcops.admins,ou=roles,ou=groups,dc=example,dc=com',
        'cn=docker,ou=roles,ou=groups,dc=example,dc=com',
        'cn=backupmgr,ou=roles,ou=groups,dc=example,dc=com',
        'cn=nfsmgr,ou=roles,ou=groups,dc=example,dc=com',
        'cn=rundeck-admin,ou=roles,ou=groups,dc=example,dc=com'
    ],
    'user-purgatory': []
}
''' TEST_USER and DISJOINT_USER are Userdicts which are used to test the
    audit() method and methods calling audit()
'''
TEST_USER = userdict.Userdict(name='flolrus', permissions=TEST_PERMISSIONS)
DISJOINT_USER = userdict.Userdict(name='flolrus',
                                  permissions=DISJOINT_PERMISSIONS)


class ProfileTestCase(unittest.TestCase):
    ''' Test cases for jldap.profile
    '''
    def setUp(self):
        ''' Set up for testing
        '''
        self.temp_profiles = tempfile.mkdtemp()
        self.empty = tempfile.mkdtemp()
        self.prof_file = os.path.join(self.temp_profiles, PROF_FILE)
        with open(self.prof_file, 'w') as prof:
            prof.write(yaml.dump(PROFILE))
 def test_found_blank(self):
     ''' Test the found property on a user without permissions
     '''
     temp_userdict = userdict.Userdict()
     self.assertEqual(temp_userdict.found, False)
 def test_constructor_with_arg(self):
     ''' Test the constructor to create a Userdict object with arguments
     '''
     self.assertTrue(
         isinstance(userdict.Userdict(name=NAME), userdict.Userdict))
 def setUp(self):
     ''' Create a userdict.Userdict object for testing
     '''
     self.userdict = userdict.Userdict(name=NAME, permissions=PERMISSIONS)
 def test_constructor(self):
     ''' Test the constructor without an argument
     '''
     # pylint: disable=no-value-for-parameter
     self.assertTrue(isinstance(userdict.Userdict(), userdict.Userdict))