diff options
| author | Martin Basti <mbasti@redhat.com> | 2016-09-26 18:22:22 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-09-27 13:35:58 +0200 |
| commit | 9d83be3647547cfca4e129cfeb63771213232cf7 (patch) | |
| tree | 0899bfbc662355dd8d1318b5e6d4909c5aaa993c /ipatests/test_xmlrpc/test_cert_plugin.py | |
| parent | 0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (diff) | |
| download | freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.tar.gz freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.tar.xz freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.zip | |
Remove unused variables in tests
This commit removes or marks unused variables as "expected to be unused"
by using '_' prefix.
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/test_cert_plugin.py')
| -rw-r--r-- | ipatests/test_xmlrpc/test_cert_plugin.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py index ab09d0aa4..f07bb1791 100644 --- a/ipatests/test_xmlrpc/test_cert_plugin.py +++ b/ipatests/test_xmlrpc/test_cert_plugin.py @@ -141,11 +141,11 @@ class test_cert(XMLRPC_test): This should fail because the service principal doesn't exist """ # First create the host that will use this policy - res = api.Command['host_add'](self.host_fqdn, force= True)['result'] + assert 'result' in api.Command['host_add'](self.host_fqdn, force=True) csr = unicode(self.generateCSR(str(self.subject))) with assert_raises(errors.NotFound): - res = api.Command['cert_request'](csr, principal=self.service_princ) + api.Command['cert_request'](csr, principal=self.service_princ) def test_0002_cert_add(self): """ @@ -267,7 +267,7 @@ class test_cert_find(XMLRPC_test): """ Search for the OCSP certificate. """ - res = api.Command['cert_find'](subject=u'OCSP Subsystem') + api.Command['cert_find'](subject=u'OCSP Subsystem') def test_0004_find_this_host(self): """ @@ -458,7 +458,7 @@ class test_cert_find(XMLRPC_test): """ Search with a negative sizelimit """ - res = api.Command['cert_find'](sizelimit=-100) + api.Command['cert_find'](sizelimit=-100) def test_0029_search_for_notfound(self): """ @@ -479,4 +479,4 @@ class test_cert_find(XMLRPC_test): """ Search using invalid date format """ - res = api.Command['cert_find'](issuedon_from=u'xyz') + api.Command['cert_find'](issuedon_from=u'xyz') |
