From 6ec5e5fec6bb2b1d8b556779a1309ed1295508b7 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 24 Jul 2013 13:24:02 +0200 Subject: 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 --- ipatests/test_webui/test_selinuxusermap.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'ipatests/test_webui/test_selinuxusermap.py') 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) -- cgit