[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests -
test_loader.py:1.7
Fred L. Drake, Jr.
fred at zope.com
Mon May 10 14:48:50 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv25314/zpkgtools/tests
Modified Files:
test_loader.py
Log Message:
make the loader.FileProxy handler iteration so I can be used by
locationmap.load()
=== Packages/zpkgtools/zpkgtools/tests/test_loader.py 1.6 => 1.7 ===
--- Packages/zpkgtools/zpkgtools/tests/test_loader.py:1.6 Thu May 6 13:35:13 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_loader.py Mon May 10 14:48:49 2004
@@ -242,6 +242,16 @@
finally:
fp.close()
+ def test_iter(self):
+ firstline = None
+ for line in self.fp:
+ if firstline is None:
+ firstline = line
+ f = open(self.fp.name, "rU")
+ expected = f.readline()
+ f.close()
+ self.assertEqual(firstline, expected)
+
def test_suite():
suite = unittest.makeSuite(FileProxyTestCase)
More information about the Zope-CVS
mailing list