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:
@ -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
|
||||
|
Reference in New Issue
Block a user