def test_update(self):
        kwargs = {}
        if 'user' in self.role['imported_roles']:
            kwargs['imported_roles'] = ''
        else:
            kwargs['imported_roles'] = ['user']
        if self.role['srchJobsQuota'] is not None:
            kwargs['srchJobsQuota'] = int(self.role['srchJobsQuota']) + 1
        self.role.update(**kwargs)
        self.role.refresh()
        self.assertEqual(self.role['imported_roles'], kwargs['imported_roles'])
        self.assertEqual(int(self.role['srchJobsQuota']), kwargs['srchJobsQuota'])
dataset/ETHPy150Open splunk/splunk-sdk-python/tests/test_role.py/RoleTestCase.test_update/original