[CMF-checkins] CVS: Products/CMFCore/tests -
test_DirectoryView.py:1.22
Jens Vagelpohl
jens at dataflake.org
Sun Mar 6 07:29:33 EST 2005
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv4910/CMFCore/tests
Modified Files:
test_DirectoryView.py
Log Message:
- DirectoryView and derived classes can now have metadata associated with
them just like regular FSObject-derived objects can.
=== Products/CMFCore/tests/test_DirectoryView.py 1.21 => 1.22 ===
--- Products/CMFCore/tests/test_DirectoryView.py:1.21 Mon Feb 28 16:47:21 2005
+++ Products/CMFCore/tests/test_DirectoryView.py Sun Mar 6 07:29:03 2005
@@ -174,6 +174,12 @@
del metatype_registry['FOLDER']
FSDVTest.tearDown(self)
+ def test_DirectoryViewMetadata(self):
+ # Test to determine if metadata shows up correctly on a
+ # FSDV that has a corresponding .metadata file
+ testfolder = self.ob.fake_skin.test_directory
+ self.assertEqual(testfolder.title, 'test_directory Title')
+
def test_DirectoryViewFolderDefault(self):
# Test that a folder inside the fake skin really is of type
# DirectoryViewSurrogate
More information about the CMF-checkins
mailing list