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
This commit is contained in:
Petr Vobornik
2013-07-24 13:24:02 +02:00
parent 8a3d8aeca3
commit 6ec5e5fec6
29 changed files with 176 additions and 186 deletions

View File

@@ -29,6 +29,7 @@ import ipatests.test_webui.data_hbac as hbac
import ipatests.test_webui.test_rbac as rbac
import ipatests.test_webui.data_sudo as sudo
class test_user(UI_driver):
def test_crud(self):
@@ -90,7 +91,7 @@ class test_user(UI_driver):
self.add_record(group.ENTITY, group.DATA2)
self.navigate_to_record(group.PKEY2)
self.add_associations([group.PKEY],facet='member_group')
self.add_associations([group.PKEY], facet='member_group')
self.add_record(netgroup.ENTITY, netgroup.DATA)
self.navigate_to_record(netgroup.PKEY)
@@ -128,7 +129,6 @@ class test_user(UI_driver):
self.delete(hbac.RULE_ENTITY, [hbac.RULE_DATA])
self.delete(sudo.RULE_ENTITY, [sudo.RULE_DATA])
def test_actions(self):
"""
Test user actions
@@ -144,8 +144,8 @@ class test_user(UI_driver):
# reset password
pwd = self.config.get('ipa_password')
fields = [
('password' ,'password1', pwd),
('password' ,'password2', pwd),
('password', 'password1', pwd),
('password', 'password2', pwd),
]
self.action_panel_action('account_actions', 'reset_password')
self.assert_dialog()