From 46c89176fd7f140d785bbdc399a94daca269172e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 23 Oct 2015 08:52:49 +0200 Subject: intg_tests: Fix PEP8 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michal Židek --- src/tests/intg/ent.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/tests/intg/ent.py') diff --git a/src/tests/intg/ent.py b/src/tests/intg/ent.py index 0fe08dcbd..2d3d02a53 100644 --- a/src/tests/intg/ent.py +++ b/src/tests/intg/ent.py @@ -129,7 +129,7 @@ def _diff(ent, pattern, desc_map={}): items = _get_desc(desc_map, None)[0] + "s" if len(unmatched_pattern) > 0: return "\nexpected " + items + " not found:\n" + \ - pformat(unmatched_pattern) + pformat(unmatched_pattern) elif isinstance(pattern, list): if not isinstance(ent, list): return "not a list, " + str(type(ent)) @@ -153,10 +153,10 @@ def _diff(ent, pattern, desc_map={}): d = "" if len(unmatched_pattern) > 0: d += "\nexpected " + items + " not found:\n" + \ - pformat(unmatched_pattern) + pformat(unmatched_pattern) if len(unmatched_ent) != 0: d += "\nunexpected " + items + " found:\n" + \ - pformat(unmatched_ent) + pformat(unmatched_ent) if len(d) > 0: return d else: @@ -187,13 +187,13 @@ def _convert_passwd(passwd): Convert a passwd entry returned by pwd module to an entry dictionary. """ return dict( - name=passwd.pw_name, - passwd=passwd.pw_passwd, - uid=passwd.pw_uid, - gid=passwd.pw_gid, - gecos=passwd.pw_gecos, - dir=passwd.pw_dir, - shell=passwd.pw_shell + name=passwd.pw_name, + passwd=passwd.pw_passwd, + uid=passwd.pw_uid, + gid=passwd.pw_gid, + gecos=passwd.pw_gecos, + dir=passwd.pw_dir, + shell=passwd.pw_shell ) @@ -350,10 +350,10 @@ def _convert_group(group): Convert a group entry returned by grp module to an entry dictionary. """ return dict( - name=group.gr_name, - passwd=group.gr_passwd, - gid=group.gr_gid, - mem=group.gr_mem + name=group.gr_name, + passwd=group.gr_passwd, + gid=group.gr_gid, + mem=group.gr_mem ) -- cgit