diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-07-24 13:24:02 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-07-26 13:35:12 +0200 |
commit | 6ec5e5fec6bb2b1d8b556779a1309ed1295508b7 (patch) | |
tree | 126474a34ad61d032cf013c69a7e59da34e0d734 /ipatests/test_webui/test_host.py | |
parent | 8a3d8aeca3bec741f8c23652848075c298bea5f1 (diff) | |
download | freeipa-6ec5e5fec6bb2b1d8b556779a1309ed1295508b7.tar.gz freeipa-6ec5e5fec6bb2b1d8b556779a1309ed1295508b7.tar.xz freeipa-6ec5e5fec6bb2b1d8b556779a1309ed1295508b7.zip |
Web UI integration tests: PEP8 fixes
Tests modified to comply with PEP8 rules with exception of rule E501 (long lines).
Done by autopep8 tool and 2 manual modifications.
https://fedorahosted.org/freeipa/ticket/3744
Diffstat (limited to 'ipatests/test_webui/test_host.py')
-rw-r--r-- | ipatests/test_webui/test_host.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ipatests/test_webui/test_host.py b/ipatests/test_webui/test_host.py index a3938fdbf..962ffb170 100644 --- a/ipatests/test_webui/test_host.py +++ b/ipatests/test_webui/test_host.py @@ -30,6 +30,7 @@ import ipatests.test_webui.data_sudo as sudo ENTITY = 'host' + class host_tasks(UI_driver): def __init__(self, *args, **kwargs): @@ -39,7 +40,7 @@ class host_tasks(UI_driver): def prep_data(self): host = 'itest' - domain = self.config.get('ipa_domain') + domain = self.config.get('ipa_domain') ip = self.get_ip() self.data = self.get_data(host, domain, ip) self.pkey = self.data['pkey'] @@ -47,7 +48,7 @@ class host_tasks(UI_driver): def prep_data2(self): host = 'itest2' - domain = self.config.get('ipa_domain') + domain = self.config.get('ipa_domain') self.data2 = self.get_data(host, domain) self.pkey2 = self.data2['pkey'] return self.data2 @@ -75,7 +76,7 @@ class host_tasks(UI_driver): 'pkey': '%s.%s' % (host, domain), 'add': add_data, 'mod': [ - ('textarea', 'description','Desc'), + ('textarea', 'description', 'Desc'), ], 'del': del_data, } @@ -91,7 +92,7 @@ class host_tasks(UI_driver): self.skip('FreeIPA Server IP address not configured') ip = ip.split('.') last = int(ip.pop()) - ip.append(str(last+1)) + ip.append(str(last + 1)) return '.'.join(ip) def load_csr(self, path): @@ -139,7 +140,7 @@ class test_host(host_tasks): self.action_panel_action(panel, 'request_cert') self.fill_text('textarea.certificate', csr) self.dialog_button_click('issue') - self.wait_for_request(n=2,d=0.5) + self.wait_for_request(n=2, d=0.5) self.assert_visible("div[name='certificate-valid']") # cert view |