From bd9e8e9ae1123041fffbf270178c4fa8cc5e1fc0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 6 Dec 2007 21:40:00 +0100 Subject: r26321: Fix python tests. (This used to be commit f9bf02fd5ce76dfb08950dc4a016fa886f2f4dd5) --- source4/auth/credentials/tests/bindings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/auth/credentials') 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()) -- cgit