tests: Split out setUp code into separate function for reuse
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 10 May 2018 23:03:03 +0000 (11:03 +1200)
committerGarming Sam <garming@samba.org>
Fri, 11 May 2018 04:01:23 +0000 (06:01 +0200)
commitd0a9e19114cfdaa9cd083e46d51f9e5de9e907e5
tree94b0898d32dfc8561493e2dd559d1465312e84a3
parent597428943b1b77267243dc69ecea6fda8dfc3163
tests: Split out setUp code into separate function for reuse

Any test that wants to change a password has to set the dSHeuristics
and minPwdAge first in order for the password change to work. The code
that does this is duplicated in several tests. This patch splits it out
into a static method so that the code can be reused rather than
duplicated.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
python/samba/tests/auth_log_pass_change.py
python/samba/tests/password_hash.py
python/samba/tests/password_test.py [new file with mode: 0644]
source4/dsdb/tests/python/acl.py
source4/dsdb/tests/python/password_lockout_base.py
source4/dsdb/tests/python/passwords.py
source4/dsdb/tests/python/tombstone_reanimation.py