mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Test: dont use global variable for iteration in test_cert_plugin
Iteration over global variable causes unwanted value changes outside method https://fedorahosted.org/freeipa/ticket/5755 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
parent
fd9434cab3
commit
91e66b9054
@ -215,7 +215,9 @@ class test_cert(XMLRPC_test):
|
||||
res = api.Command['service_show'](self.service_princ)['result']
|
||||
|
||||
# Both the old and the new certs should be listed as certificates now
|
||||
certs_encoded = (base64.b64encode(cert) for cert in res['usercertificate'])
|
||||
certs_encoded = (
|
||||
base64.b64encode(usercert) for usercert in res['usercertificate']
|
||||
)
|
||||
assert set(certs_encoded) == set([cert, newcert])
|
||||
|
||||
def test_0008_cleanup(self):
|
||||
|
Loading…
Reference in New Issue
Block a user