[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests - testRuntimeInfoView.py:1.1.2.2
Philipp von Weitershausen
philikon@gmx.net
Wed, 10 Apr 2002 07:27:07 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv9362/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests
Modified Files:
Tag: Zope-3x-branch
testRuntimeInfoView.py
Log Message:
Fixes to conform with style guides
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/Views/Browser/tests/testRuntimeInfoView.py 1.1.2.1 => 1.1.2.2 ===
provideAdapter(IApplicationControl, IRuntimeInfo, RuntimeInfo)
test_runtimeinfoview = self._TestView__newView(ApplicationController)
+
test_format = test_runtimeinfoview.runtimeInfo()
- self.assertEquals(type(test_format), DictType)
+ self.failUnless(isinstance(test_format, DictType))
+
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]))