diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-10-23 08:52:49 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2015-10-26 07:15:26 +0100 |
commit | 46c89176fd7f140d785bbdc399a94daca269172e (patch) | |
tree | a872ab074e900b034597467f4dbbf61a7cf04118 /src/tests/intg/ent.py | |
parent | e563de9203be581acc30c7794f568ae40d22bee0 (diff) | |
download | sssd-46c89176fd7f140d785bbdc399a94daca269172e.tar.gz sssd-46c89176fd7f140d785bbdc399a94daca269172e.tar.xz sssd-46c89176fd7f140d785bbdc399a94daca269172e.zip |
intg_tests: Fix PEP8 warnings
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/tests/intg/ent.py')
-rw-r--r-- | src/tests/intg/ent.py | 28 |
1 files changed, 14 insertions, 14 deletions
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 ) |