svn commit: samba r26321 - in branches/SAMBA_4_0: . source/auth/credentials/tests

jelmer at samba.org jelmer at samba.org
Thu Dec 6 21:40:00 GMT 2007


Author: jelmer
Date: 2007-12-06 21:40:00 +0000 (Thu, 06 Dec 2007)
New Revision: 26321

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26321

Log:
Fix python tests.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py	2007-12-06 21:39:56 UTC (rev 26320)
+++ branches/SAMBA_4_0/source/auth/credentials/tests/bindings.py	2007-12-06 21:40:00 UTC (rev 26321)
@@ -84,9 +84,10 @@
         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())



More information about the samba-cvs mailing list