[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/Authentication/tests - testDictionaryAuthentication.py:1.1.2.2
Stephan Richter
srichter@cbu.edu
Thu, 4 Apr 2002 06:45:23 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server/Authentication/tests
In directory cvs.zope.org:/tmp/cvs-serv21650/lib/python/Zope/Server/Authentication/tests
Modified Files:
Tag: Zope3-Server-Branch
testDictionaryAuthentication.py
Log Message:
Worked some more on FTP, especially in regards with the Publisher.
- Finally we can get rid of the medusa base. I think I have extracted all
of the interesting code.
- Started on a PublisherFileSystem. A few methods might work, but most of
the FS methods are not hooked up yet.
- Started writing VFS Publisher hooks.
- Added the FTPServer to the startup registry. It comes up, but do not
expect it to work, since no views have been written for VFS yet.
=== Zope3/lib/python/Zope/Server/Authentication/tests/testDictionaryAuthentication.py 1.1.2.1 => 1.1.2.2 ===
- def testAuthenticationUsers(self):
- self.assertEqual(self.auth.user_class, SimpleUser)
- self.assertEqual(self.auth.anonymous_user, AnonymousUser)
-
-
def testAuthenticate(self):
- self.assertEqual(self.auth.authenticate('foo', 'bar').username,
- SimpleUser('foo').username)
- self.assertEqual(self.auth.authenticate('blah', ''),
- AnonymousUser)
- self.assertEqual(self.auth.authenticate('foo', 'nonesense'),
- AnonymousUser)
+ 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):