[Zope3-checkins] CVS: Zope3/src/zope/fssync/tests - test_metadata.py:1.6
Fred L. Drake, Jr.
fred@zope.com
Fri, 25 Jul 2003 16:19:25 -0400
Update of /cvs-repository/Zope3/src/zope/fssync/tests
In directory cvs.zope.org:/tmp/cvs-serv29324/fssync/tests
Modified Files:
test_metadata.py
Log Message:
Use a more concise and readable format for @@Zope/Entries.xml,
while still supporting loading of the XML pickle format (so
existing checkouts are still valid).
=== Zope3/src/zope/fssync/tests/test_metadata.py 1.5 => 1.6 ===
--- Zope3/src/zope/fssync/tests/test_metadata.py:1.5 Fri Jul 25 15:34:51 2003
+++ Zope3/src/zope/fssync/tests/test_metadata.py Fri Jul 25 16:18:50 2003
@@ -23,7 +23,7 @@
from zope.xmlpickle import loads
-from zope.fssync.metadata import Metadata
+from zope.fssync.metadata import Metadata, load_entries
from zope.fssync.tests.tempfiles import TempFiles
class TestMetadata(TempFiles):
@@ -61,13 +61,13 @@
efile = join(dir, "@@Zope", "Entries.xml")
self.assert_(isfile(efile))
data = self.readfile(efile)
- entries = loads(data)
+ entries = load_entries(data)
self.assertEqual(entries, {"foo": {"hello": "world"}})
md.getentry(foo).clear()
md.flush()
self.assert_(isfile(efile))
data = self.readfile(efile)
- entries = loads(data)
+ entries = load_entries(data)
self.assertEqual(entries, {})
def test_suite():