1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

PEP8: fix E302: expected 2 blank lines, found 1

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Joe Guo
2018-07-30 18:20:39 +12:00
committed by Douglas Bagnall
parent 542e91ef92
commit 211c9a5f85
180 changed files with 480 additions and 0 deletions

View File

@ -51,6 +51,8 @@ HASH_OPTION = "password hash userPassword schemes"
# Get the value of an attribute from the output string
# Note: Does not correctly handle values spanning multiple lines,
# which is acceptable for it's usage in these tests.
def _get_attribute(out, name):
p = re.compile("^" + name + ":\s+(\S+)")
for line in out.split("\n"):
@ -59,6 +61,7 @@ def _get_attribute(out, name):
return m.group(1)
return ""
class UserCmdCryptShaTestCase(SambaToolCmdTest):
"""
Tests for samba-tool user subcommands generation of the virtualCryptSHA256