summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/test_host_plugin.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-26 18:22:22 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-27 13:35:58 +0200
commit9d83be3647547cfca4e129cfeb63771213232cf7 (patch)
tree0899bfbc662355dd8d1318b5e6d4909c5aaa993c /ipatests/test_xmlrpc/test_host_plugin.py
parent0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (diff)
downloadfreeipa-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_host_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/test_host_plugin.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/ipatests/test_xmlrpc/test_host_plugin.py b/ipatests/test_xmlrpc/test_host_plugin.py
index 279186b70..b36c6b812 100644
--- a/ipatests/test_xmlrpc/test_host_plugin.py
+++ b/ipatests/test_xmlrpc/test_host_plugin.py
@@ -619,9 +619,9 @@ class TestHostDNS(XMLRPC_test):
try:
ipv6only_host.create(force=False)
finally:
- command = ipv6only_host.run_command('dnsrecord_del', dnszone,
- ipv6only_host.shortname,
- aaaarecord=aaaarec)
+ ipv6only_host.run_command(
+ 'dnsrecord_del', dnszone, ipv6only_host.shortname,
+ aaaarecord=aaaarec)
def test_add_ipv4only_host(self, dns_setup, ipv4only_host):
ipv4only_host.run_command('dnsrecord_add', dnszone,
@@ -629,9 +629,9 @@ class TestHostDNS(XMLRPC_test):
try:
ipv4only_host.create(force=False)
finally:
- command = ipv4only_host.run_command('dnsrecord_del', dnszone,
- ipv4only_host.shortname,
- arecord=arec)
+ ipv4only_host.run_command(
+ 'dnsrecord_del', dnszone, ipv4only_host.shortname,
+ arecord=arec)
def test_add_ipv46both_host(self, dns_setup, ipv46both_host):
ipv46both_host.run_command('dnsrecord_add', dnszone,
@@ -640,10 +640,9 @@ class TestHostDNS(XMLRPC_test):
try:
ipv46both_host.create(force=False)
finally:
- command = ipv46both_host.run_command('dnsrecord_del', dnszone,
- ipv46both_host.shortname,
- arecord=arec2,
- aaaarecord=aaaarec2)
+ ipv46both_host.run_command(
+ 'dnsrecord_del', dnszone, ipv46both_host.shortname,
+ arecord=arec2, aaaarecord=aaaarec2)
def test_add_ipv4_host_from_ip(self, dns_setup, ipv4_fromip_host):
ipv4_fromip_host.ensure_missing()