[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZMI/tests - testZMIViewUtility.py:1.1.2.3

Kapil k_vertigo@yahoo.com
Fri, 1 Feb 2002 14:26:10 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/tests
In directory cvs.zope.org:/tmp/cvs-serv29441/lib/python/Zope/App/ZMI/tests

Modified Files:
      Tag: Zope-3x-branch
	testZMIViewUtility.py 
Log Message:
Changed zmi view thingy to add the zmi skin to the tab action URL. -amos


=== Zope3/lib/python/Zope/App/ZMI/tests/testZMIViewUtility.py 1.1.2.2 => 1.1.2.3 ===
 
     def getViews(self, ob):
-        return [('l1', 'a1'), ('l2', 'a2'), ('l3', 'a3'),]
+        return [('l1', 'a1'),
+                ('l2', 'a2/a3'),
+                ('l3', 'a3;view'),]
 
 
 class Test(unittest.TestCase):
@@ -37,9 +39,9 @@
     def test(self):
         v = ZMIViewUtility(None)
         self.assertEqual(v.getZMIViews(),
-                         [{'label':'l1', 'action':'a1'},
-                          {'label':'l2', 'action':'a2'},
-                          {'label':'l3', 'action':'a3'}
+                         [{'label':'l1', 'action':'a1;skin=zmi'},
+                          {'label':'l2', 'action':'a2;skin=zmi/a3'},
+                          {'label':'l3', 'action':'a3;view;skin=zmi'}
                           ])