[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/Authentication/tests - __init__.py:1.1.2.2 testDictionaryAuthentication.py:1.1.2.3 testSimpleUser.py:1.1.2.2

Shane Hathaway shane@cvs.zope.org
Thu, 4 Apr 2002 13:46:26 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Server/Authentication/tests
In directory cvs.zope.org:/tmp/cvs-serv17993/Authentication/tests

Modified Files:
      Tag: Zope3-Server-Branch
	__init__.py testDictionaryAuthentication.py testSimpleUser.py 
Log Message:
Just fixed line endings.  No carriage returns.


=== Zope3/lib/python/Zope/Server/Authentication/tests/__init__.py 1.1.2.1 => 1.1.2.2 ===
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-# 
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-# 
-##############################################################################
-"""
-
-$Id$
-"""
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+
+$Id$
+"""


=== Zope3/lib/python/Zope/Server/Authentication/tests/testDictionaryAuthentication.py 1.1.2.2 => 1.1.2.3 ===
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-# 
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-# 
-##############################################################################
-"""
-
-$Id$
-"""
-
-
-import unittest
-from Interface.Verify import verifyClass
-from Zope.Server.Authentication.IAuthentication import IAuthentication 
-from Zope.Server.Authentication.DictionaryAuthentication import \
-     DictionaryAuthentication as DictAuth
-from Zope.Server.Authentication.SimpleUser import SimpleUser, AnonymousUser
-
-class Test( unittest.TestCase ):
-
-    def setUp(self):
-        self.auth = DictAuth({'foo': 'bar',
-                              'blah': 'plah',
-                              'stupid': 'nonesense'})
-
-
-    def testAuthenticate(self):
-        self.failUnless(self.auth.authenticate('foo', 'bar')[0])
-        self.failIf(self.auth.authenticate('blah', '')[0])
-        self.failIf(self.auth.authenticate('foo', 'nonesense')[0])        
-
-
-    def testInterface(self):
-        self.failUnless(IAuthentication.isImplementedByInstancesOf(DictAuth))
-        self.failUnless(verifyClass(IAuthentication, DictAuth))        
-        
-
-
-def test_suite():
-    loader = unittest.TestLoader()
-    return loader.loadTestsFromTestCase( Test )
-
-if __name__=='__main__':
-    unittest.TextTestRunner().run( test_suite() )
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+
+
+import unittest
+from Interface.Verify import verifyClass
+from Zope.Server.Authentication.IAuthentication import IAuthentication
+from Zope.Server.Authentication.DictionaryAuthentication import \
+     DictionaryAuthentication as DictAuth
+from Zope.Server.Authentication.SimpleUser import SimpleUser, AnonymousUser
+
+class Test( unittest.TestCase ):
+
+    def setUp(self):
+        self.auth = DictAuth({'foo': 'bar',
+                              'blah': 'plah',
+                              'stupid': 'nonesense'})
+
+
+    def testAuthenticate(self):
+        self.failUnless(self.auth.authenticate('foo', 'bar')[0])
+        self.failIf(self.auth.authenticate('blah', '')[0])
+        self.failIf(self.auth.authenticate('foo', 'nonesense')[0])
+
+
+    def testInterface(self):
+        self.failUnless(IAuthentication.isImplementedByInstancesOf(DictAuth))
+        self.failUnless(verifyClass(IAuthentication, DictAuth))
+
+
+
+def test_suite():
+    loader = unittest.TestLoader()
+    return loader.loadTestsFromTestCase( Test )
+
+if __name__=='__main__':
+    unittest.TextTestRunner().run( test_suite() )


=== Zope3/lib/python/Zope/Server/Authentication/tests/testSimpleUser.py 1.1.2.1 => 1.1.2.2 ===
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-# 
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-# 
-##############################################################################
-"""
-
-$Id$
-"""
-
-import unittest
-from Interface.Verify import verifyClass
-from Zope.Server.Authentication.IUser import IUser 
-from Zope.Server.Authentication.SimpleUser import SimpleUser, AnonymousUser
-
-class Test( unittest.TestCase ):
-
-
-    def testAnonymousUser(self):
-        self.assertEqual(AnonymousUser.username, 'anonymous')
-
-
-    def testSimpleUser(self):
-        simple_user = SimpleUser('simple')
-        self.assertEqual(simple_user.username, 'simple')
-
-
-    def testInterface(self):
-        self.failUnless(IUser.isImplementedByInstancesOf(SimpleUser))
-        self.failUnless(verifyClass(IUser, SimpleUser))        
-        
-
-
-def test_suite():
-    loader = unittest.TestLoader()
-    return loader.loadTestsFromTestCase( Test )
-
-if __name__=='__main__':
-    unittest.TextTestRunner().run( test_suite() )
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+
+import unittest
+from Interface.Verify import verifyClass
+from Zope.Server.Authentication.IUser import IUser
+from Zope.Server.Authentication.SimpleUser import SimpleUser, AnonymousUser
+
+class Test( unittest.TestCase ):
+
+
+    def testAnonymousUser(self):
+        self.assertEqual(AnonymousUser.username, 'anonymous')
+
+
+    def testSimpleUser(self):
+        simple_user = SimpleUser('simple')
+        self.assertEqual(simple_user.username, 'simple')
+
+
+    def testInterface(self):
+        self.failUnless(IUser.isImplementedByInstancesOf(SimpleUser))
+        self.failUnless(verifyClass(IUser, SimpleUser))
+
+
+
+def test_suite():
+    loader = unittest.TestLoader()
+    return loader.loadTestsFromTestCase( Test )
+
+if __name__=='__main__':
+    unittest.TextTestRunner().run( test_suite() )