[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests - testRuntimeInfoView.py:1.1.2.3
Christian Theune
ct@gocept.com
Thu, 18 Apr 2002 15:57:00 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv29575/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests
Modified Files:
Tag: Zope-3x-branch
testRuntimeInfoView.py
Log Message:
Fixed unit tests. They passed, but didn't test what they should (Equality of sets). Functional style is cool, but
failUnlessEqual is more appropriate.
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests/testRuntimeInfoView.py 1.1.2.2 => 1.1.2.3 ===
assert_keys = ['ZopeVersion', 'PythonVersion', 'PythonPath', 'SystemPlatform', 'CommandLine', 'ProcessId', 'Uptime' ]
test_keys = test_format.keys()
- self.failUnless(min([key in assert_keys for key in test_keys]))
+
+ assert_keys.sort()
+ test_keys.sort()
+ self.failUnless(assert_keys == test_keys)
def test_suite():
return TestSuite((