[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/tests - testNameConfigurable.py:1.1.2.2

Marius Gedminas mgedmin@codeworks.lt
Wed, 11 Dec 2002 11:25:55 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/tests
In directory cvs.zope.org:/tmp/cvs-serv12671/lib/python/Zope/App/OFS/Services/tests

Modified Files:
      Tag: named-component-configuration-branch
	testNameConfigurable.py 
Log Message:
Filter out empty registries from listConfigurationNames (end result is that
e.g. a ServiceManager will not show a service type if there are no
registered configurations for it.)



=== Zope3/lib/python/Zope/App/OFS/Services/tests/testNameConfigurable.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/lib/python/Zope/App/OFS/Services/tests/testNameConfigurable.py:1.1.2.1	Tue Dec 10 14:16:04 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/tests/testNameConfigurable.py	Wed Dec 11 11:25:54 2002
@@ -102,6 +102,8 @@
         self.assertEquals(tuple(subject.listConfigurationNames()), ())
         subject._bindings['Foo'] = 1
         self.assertEquals(tuple(subject.listConfigurationNames()), ('Foo',))
+        subject._bindings['Bar'] = 0   # false values should be filtered out
+        self.assertEquals(tuple(subject.listConfigurationNames()), ('Foo',))
 
 
 def test_suite():