Revision
1571
Author
cdaboo@apple.com
Date
2007-05-24 19:40:24 -0700 (Thu, 24 May 2007)

Log Message

Fix up test for change to Kerberos failure behavior.

Modified Paths

Diff

Modified: CalendarServer/trunk/twistedcaldav/test/test_tap.py (1570 => 1571)


--- CalendarServer/trunk/twistedcaldav/test/test_tap.py	2007-05-25 02:22:17 UTC (rev 1570)
+++ CalendarServer/trunk/twistedcaldav/test/test_tap.py	2007-05-25 02:40:24 UTC (rev 1571)
@@ -440,10 +440,12 @@
         self.config['Authentication']['Kerberos']['ServicePrincipal'] = ''
         self.config['Authentication']['Kerberos']['Enabled'] = True
         self.writeConfig()
-        self.assertRaises(
-            ValueError,
-            self.getSite)
+        site = self.getSite()
 
+        authWrapper = site.resource.resource
+
+        self.assertFalse(authWrapper.credentialFactories.has_key('negotiate'))
+
     def test_servicePrincipal(self):
         """
         Test that the kerberos realm is the realm portion of a principal