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_selinuxusermap.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_selinuxusermap.py')
-rw-r--r-- | ipatests/test_webui/test_selinuxusermap.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ipatests/test_webui/test_selinuxusermap.py b/ipatests/test_webui/test_selinuxusermap.py index 397005441..29b9479aa 100644 --- a/ipatests/test_webui/test_selinuxusermap.py +++ b/ipatests/test_webui/test_selinuxusermap.py @@ -28,18 +28,19 @@ import ipatests.test_webui.data_hostgroup as hostgroup from ipatests.test_webui.test_host import host_tasks, ENTITY as HOST_ENTITY ENTITY = 'selinuxusermap' -PKEY='itest-selinuxusermap' +PKEY = 'itest-selinuxusermap' DATA = { 'pkey': PKEY, 'add': [ ('textbox', 'cn', PKEY), - ('textbox', 'ipaselinuxuser','user_u:s0'), + ('textbox', 'ipaselinuxuser', 'user_u:s0'), ], 'mod': [ - ('textarea', 'description','itest-selinuxusermap desc'), + ('textarea', 'description', 'itest-selinuxusermap desc'), ], } + class test_selinuxusermap(UI_driver): def test_crud(self): @@ -69,10 +70,10 @@ class test_selinuxusermap(UI_driver): self.navigate_to_record(PKEY) tables = [ - ['memberuser_user', [user.PKEY, user.PKEY2],], - ['memberuser_group', [group.PKEY, group.PKEY2],], - ['memberhost_host', [host.pkey, host.pkey2],], - ['memberhost_hostgroup', [hostgroup.PKEY, hostgroup.PKEY2],], + ['memberuser_user', [user.PKEY, user.PKEY2], ], + ['memberuser_group', [group.PKEY, group.PKEY2], ], + ['memberhost_host', [host.pkey, host.pkey2], ], + ['memberhost_hostgroup', [hostgroup.PKEY, hostgroup.PKEY2], ], ] categories = [ @@ -101,4 +102,4 @@ class test_selinuxusermap(UI_driver): self.disable_action() self.enable_action() - self.delete_action(ENTITY, PKEY)
\ No newline at end of file + self.delete_action(ENTITY, PKEY) |