def test_add_group(self):
     with self.assertRaises(Exception):
         utils.create_group('test1', self.d1)
 def test_add_group(self):
     try:
         utils.create_group('test_group123', self.d1)
     except:
         self.fail('Unexpected exception raised: '
                   'utils.create_group(\'test_group123\', self.d1)')
Exemple #3
0
def setup ():
  utils.create_user ("alice", "Passw0rd")
  utils.create_group ("winsys")
  utils.add_user_to_group ("alice", "winsys")
Exemple #4
0
 def test_add_group(self):
     with self.assertRaises(Exception):
         utils.create_group('test1', self.d1)
 def _create_test_group(self, name, domain):
     return utils.create_group(
         self.admin_client, name,
         domain.id)
 def _create_groups(self):
     self.g1 = utils.create_group(self.admin_client, 'g1', self.d1)
     self.g2 = utils.create_group(self.admin_client, 'g2', self.d1)
 def test_add_group(self):
     try:
         utils.create_group('test_group123', self.d1)
     except:
         self.fail('Unexpected exception raised: '
                   'utils.create_group(\'test_group123\', self.d1)')