password_lockout tests: add assertLoginFailure()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 22 Oct 2015 03:54:19 +0000 (16:54 +1300)
committerGarming Sam <garming@samba.org>
Mon, 14 Dec 2015 23:08:57 +0000 (00:08 +0100)
commit909ebe0191a409c107904df658dc9111dd5de669
tree80c8cc23c27bf0859db76fcfaba10fd7f28680c0
parentd097e813fff3aaed261a18d8066e6bd11f12abad
password_lockout tests: add assertLoginFailure()

In a few places where a login should fail in a particular way, an
actual login success would not have triggered a test failure -- only
the wrong kind of login failure was caught.

This makes a helper function to deal with them all.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/dsdb/tests/python/password_lockout.py