summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-06 21:40:00 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:34 +0100
commitbd9e8e9ae1123041fffbf270178c4fa8cc5e1fc0 (patch)
treedff27a2e1d59dc9f0d2b521077afaacf1d43a76d /source4/auth
parent997688671083aa32f3b985d8ab14eb7a761de525 (diff)
downloadsamba-bd9e8e9ae1123041fffbf270178c4fa8cc5e1fc0.tar.gz
samba-bd9e8e9ae1123041fffbf270178c4fa8cc5e1fc0.tar.bz2
samba-bd9e8e9ae1123041fffbf270178c4fa8cc5e1fc0.zip
r26321: Fix python tests.
(This used to be commit f9bf02fd5ce76dfb08950dc4a016fa886f2f4dd5)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/credentials/tests/bindings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/auth/credentials/tests/bindings.py b/source4/auth/credentials/tests/bindings.py
index 6253e8fbad..8312e77e9e 100644
--- a/source4/auth/credentials/tests/bindings.py
+++ b/source4/auth/credentials/tests/bindings.py
@@ -84,9 +84,10 @@ class CredentialsTests(unittest.TestCase):
self.creds.guess()
def test_authentication_requested(self):
+ self.creds.set_username("")
self.assertFalse(self.creds.authentication_requested())
+ self.creds.set_username("somebody")
+ self.assertTrue(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())