def METHOD_NAME(self, client):
    self.start = time.time()
    try:
        admin = client.sf.getAdminService()
        old_ctx = admin.getEventContext()
        old_grp = admin.getGroup(self.group.id.val)
        self.change_permissions(self.group.id.val, self.to_perms, client)
        new_ctx = admin.getEventContext()  # Refresh
        new_grp = admin.getGroup(self.group.id.val)
    finally:
        self.stop = time.time()
        self.elapsed = (self.stop - self.start)
    # Check old
    old_perms = old_grp.details.permissions
    self.assertEqPerms(old_ctx.groupPermissions, self.from_perms)
    self.assertEqPerms(old_ctx.groupPermissions, old_perms)
    # Check new
    new_perms = new_grp.details.permissions
    self.assertEqPerms(new_ctx.groupPermissions, self.to_perms)
    self.assertEqPerms(new_ctx.groupPermissions, new_perms)