[Zope3-checkins] CVS: Zope3/src/zope/app/registration/tests - test_registrationstack.py:1.2

Jim Fulton jim at zope.com
Thu Apr 8 17:03:11 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/registration/tests
In directory cvs.zope.org:/tmp/cvs-serv12425/src/zope/app/registration/tests

Modified Files:
	test_registrationstack.py 
Log Message:
Removed the id key from info. Views can compute this if they want it.

Also, got rid of the keep_dummy option to info.  Clients didn't seem
to trust it anyway, so it did no good.  The info method doesn't return 
dummy entries (for the None stack marker) anymore,


=== Zope3/src/zope/app/registration/tests/test_registrationstack.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/registration/tests/test_registrationstack.py:1.1	Sat Mar 13 13:01:18 2004
+++ Zope3/src/zope/app/registration/tests/test_registrationstack.py	Thu Apr  8 17:02:41 2004
@@ -194,12 +194,10 @@
         self.assertEqual(
             info,
             [
-              {'id': 'default/1',
-               'active': True,
+              {'active': True,
                'registration': c1,
                },
-              {'id': 'default/2',
-               'active': False,
+              {'active': False,
                'registration': c2,
                },
               ])
@@ -210,30 +208,10 @@
         self.assertEqual(
             info,
             [
-              {'id': 'default/2',
-               'active': True,
+              {'active': True,
                'registration': c2,
                },
-              {'id': 'default/1',
-               'active': False,
-               'registration': c1,
-               },
-              ])
-
-        info = registry.info(True)
-        self.assertEqual(
-            info,
-            [
-              {'id': 'default/2',
-               'active': True,
-               'registration': c2,
-               },
-              {'id': '',
-               'active': False,
-               'registration': None,
-               },
-              {'id': 'default/1',
-               'active': False,
+              {'active': False,
                'registration': c1,
                },
               ])




More information about the Zope3-Checkins mailing list