[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZMI/tests - sampleInterfaces.py:1.1.2.3 testAddable.py:1.1.2.3 testProvideClass.py:1.1.2.3 testServiceProvideClass.py:1.1.2.3 testTabsDirective.py:1.1.2.4 testZMIViewUtility.py:1.1.2.4
Tres Seaver
tseaver@zope.com
Tue, 12 Feb 2002 15:56:36 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/tests
In directory cvs.zope.org:/tmp/cvs-serv19744/Zope/App/ZMI/tests
Modified Files:
Tag: Zope-3x-branch
sampleInterfaces.py testAddable.py testProvideClass.py
testServiceProvideClass.py testTabsDirective.py
testZMIViewUtility.py
Log Message:
- Normalize file headers.
- Fix violations of "80 character" rule.
=== Zope3/lib/python/Zope/App/ZMI/tests/sampleInterfaces.py 1.1.2.2 => 1.1.2.3 ===
"""
-Revision information: $Id$
+$Id$
"""
from Interface import Interface
=== Zope3/lib/python/Zope/App/ZMI/tests/testAddable.py 1.1.2.2 => 1.1.2.3 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
+##############################################################################
+"""
+
+$Id$
+"""
import unittest, sys
from Zope.App.ZMI.Addable import ContentAddables, _clear, Addable
@@ -11,7 +26,8 @@
self.assertEqual(ContentAddables.getAddables(None), [])
- ContentAddables.provideAddable('.Contact', 'Personal Contact', 'blah\nblah')
+ ContentAddables.provideAddable('.Contact', 'Personal Contact',
+ 'blah\nblah')
self.assertEqual(ContentAddables.getAddables(None), [
Addable('.Contact', 'Personal Contact', 'blah\nblah'),
=== Zope3/lib/python/Zope/App/ZMI/tests/testProvideClass.py 1.1.2.2 => 1.1.2.3 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
+##############################################################################
+""" ZMI unit tests
+
+$Id$
+"""
-""" ZMI unit tests """
import unittest, sys, Interface
@@ -29,7 +37,8 @@
from Zope.App.ZMI import provideClass
from Zope.App.ZMI.Addable import ContentAddables
- provideClass(ContentAddables, 'My.Test.Addable', MyAddableObject, None, 'Testing')
+ provideClass(ContentAddables, 'My.Test.Addable', MyAddableObject,
+ None, 'Testing')
object = createObject(None,'My.Test.Addable')
self.assert_(isinstance(object, MyAddableObject))
=== Zope3/lib/python/Zope/App/ZMI/tests/testServiceProvideClass.py 1.1.2.2 => 1.1.2.3 ===
+#
+# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
+#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
+##############################################################################
+""" ZMI unit tests
+
+$Id$
+"""
-""" ZMI unit tests """
import unittest, sys, Interface
from Zope.App.ZMI.Addable import ServiceAddables
@@ -35,7 +43,8 @@
def testServiceProvideClassDirective(self):
- serviceName = 'Zope.App.ZMI.tests.testServiceProvideClass.MyAddableService'
+ serviceName = \
+ 'Zope.App.ZMI.tests.testServiceProvideClass.MyAddableService'
xmlconfig( StringIO("""
<zopeConfigure
=== Zope3/lib/python/Zope/App/ZMI/tests/testTabsDirective.py 1.1.2.3 => 1.1.2.4 ===
#
##############################################################################
+"""
+
+$Id$
+"""
import unittest, sys
-# Revision information: $Id$
from StringIO import StringIO
=== Zope3/lib/python/Zope/App/ZMI/tests/testZMIViewUtility.py 1.1.2.3 => 1.1.2.4 ===
#
##############################################################################
+"""
+
+$Id$
+"""
import unittest, sys
from Interface import Interface
from Zope.App.ZMI.IZMIViewService import IZMIViewService
-from Zope.ComponentArchitecture import getService, provideService, defineService, _clear
+from Zope.ComponentArchitecture import getService, provideService
+from Zope.ComponentArchitecture import defineService, _clear
from Zope.App.ZMI.ZMIViewUtility import ZMIViewUtility
class Service: