Ejemplo n.º 1
0
    def test_create_group(self):
        groupname = 'unit_test_fake_group'
        groups = users.get_groups()

        with RollbackContext() as rollback:
            users.create_group(groupname, 9999)
            rollback.prependDefer(users.delete_group, groupname)

            new_groups = users.get_groups()
            self.assertEqual(len(new_groups), len(groups) + 1)
Ejemplo n.º 2
0
    def test_create_group(self):
        groupname = 'unit_test_fake_group'
        groups = users.get_groups()

        with RollbackContext() as rollback:
            users.create_group(groupname, 9999)
            rollback.prependDefer(users.delete_group, groupname)

            new_groups = users.get_groups()
            self.assertEqual(len(new_groups), len(groups) + 1)
Ejemplo n.º 3
0
 def test_list_existing_groups(self):
     groups = users.get_groups()
     self.assertGreaterEqual(len(groups), 1)
Ejemplo n.º 4
0
 def test_list_existing_groups(self):
     groups = users.get_groups()
     self.assertGreaterEqual(len(groups), 1)