summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())