diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-29 16:01:11 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:46:50 +0100 |
commit | 0e191fa26ab6f0f4119eccca0170e5ebd7f46382 (patch) | |
tree | e445bae628fb7707ea04ec1a5487a8209d675dd0 /source4/auth/credentials/tests | |
parent | cef98aaf276ba16def3fd2cd4a7e432dd1a1cb4c (diff) | |
download | samba-0e191fa26ab6f0f4119eccca0170e5ebd7f46382.tar.gz samba-0e191fa26ab6f0f4119eccca0170e5ebd7f46382.tar.bz2 samba-0e191fa26ab6f0f4119eccca0170e5ebd7f46382.zip |
r26204: Binsings for some more functions.
(This used to be commit ab6be3086f7ad8c22e6f4805bccad5a04c0325f2)
Diffstat (limited to 'source4/auth/credentials/tests')
-rw-r--r-- | source4/auth/credentials/tests/bindings.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/auth/credentials/tests/bindings.py b/source4/auth/credentials/tests/bindings.py index 9bb49a12a5..6253e8fbad 100644 --- a/source4/auth/credentials/tests/bindings.py +++ b/source4/auth/credentials/tests/bindings.py @@ -82,3 +82,11 @@ class CredentialsTests(unittest.TestCase): def test_guess(self): # Just check the method is there and doesn't raise an exception self.creds.guess() + + def test_authentication_requested(self): + self.assertFalse(self.creds.authentication_requested()) + + def test_wrong_password(self): + self.assertTrue(self.creds.wrong_password()) + self.assertTrue(self.creds.wrong_password()) + self.assertFalse(self.creds.wrong_password()) |