[Zope3-checkins] CVS: Zope3/src/zope/app/ftp/tests - test_ftpview.py:1.2
Steve Alexander
steve@cat-box.net
Wed, 4 Jun 2003 07:14:19 -0400
Update of /cvs-repository/Zope3/src/zope/app/ftp/tests
In directory cvs.zope.org:/tmp/cvs-serv14850/src/zope/app/ftp/tests
Modified Files:
test_ftpview.py
Log Message:
new style implements()
=== Zope3/src/zope/app/ftp/tests/test_ftpview.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/ftp/tests/test_ftpview.py:1.1 Mon Feb 3 10:08:37 2003
+++ Zope3/src/zope/app/ftp/tests/test_ftpview.py Wed Jun 4 07:13:48 2003
@@ -29,13 +29,12 @@
from zope.app.interfaces.container import IZopeWriteContainer
from zope.app.ftp import FTPView
from zope.app.tests.placelesssetup import PlacelessSetup
+from zope.interface import implements
class Directory(demofs.Directory):
- __implements__ = (IReadDirectory, IWriteDirectory,
- IFileFactory, IDirectoryFactory,
- IZopeWriteContainer, IZopeDublinCore,
- )
+ implements(IReadDirectory, IWriteDirectory, IFileFactory,
+ IDirectoryFactory, IZopeWriteContainer, IZopeDublinCore)
modified = datetime.datetime(1990, 1,1)
@@ -56,8 +55,8 @@
del self[old]
class File(demofs.File):
-
- __implements__ = IReadFile, IWriteFile, IZopeDublinCore
+
+ implements(IReadFile, IWriteFile, IZopeDublinCore)
modified = datetime.datetime(1990, 1,2)
@@ -180,7 +179,7 @@
'group_name': 'na', 'group_readable': 1, 'group_writable': 1,
'other_readable': 0, 'other_writable': 0,
})
-
+
def test_mtime(self):
self.assertEqual(self.__view.mtime('test'), Directory.modified)
self.assertEqual(self.__view.mtime('f'), File.modified)