[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/tests - test_addservicecontainer.py:1.1.2.5 test_changeconfigurations.py:1.1.2.3 test_editconfiguration.py:1.1.2.3 test_field_widget.py:1.1.2.3 test_rolecontents.py:1.1.2.2
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:48 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services/tests
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/browser/services/tests
Modified Files:
Tag: NameGeddon-branch
test_addservicecontainer.py test_changeconfigurations.py
test_editconfiguration.py test_field_widget.py
test_rolecontents.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py 1.1.2.4 => 1.1.2.5 ===
--- Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py:1.1.2.4 Tue Dec 24 07:50:53 2002
+++ Zope3/src/zope/app/browser/services/tests/test_addservicecontainer.py Tue Dec 24 21:20:17 2002
@@ -92,12 +92,12 @@
provideView(IText, 'edit', IBrowserPresentation, TextAreaWidget)
def test_services(self):
-
+
class I2(Interface): pass
class I3(Interface): pass
defineService('s2', I2)
defineService('s3', I3)
-
+
request = TestRequest()
view = AddServiceConfiguration(
ComponentAdding(self.__default, request), request)
@@ -110,7 +110,7 @@
services.sort()
self.failUnless((('s1' in services) and
('s2' in services) and
- ('s3' in services)), services)
+ ('s3' in services)), services)
def test_components(self):
@@ -131,7 +131,7 @@
# We need the ContentAdding to have a contentName. It normally
# gets set during traversal, but we aren't traversing here.
view.context.contentName = 'sd1'
-
+
components = list(view.components())
components.sort()
=== Zope3/src/zope/app/browser/services/tests/test_changeconfigurations.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/services/tests/test_changeconfigurations.py:1.1.2.2 Tue Dec 24 10:21:52 2002
+++ Zope3/src/zope/app/browser/services/tests/test_changeconfigurations.py Tue Dec 24 21:20:17 2002
@@ -47,8 +47,8 @@
request.form = {'submit_update': '', 'Roles.active': 'c'}
view.applyUpdates()
self.assertEqual(registry._data, ('c', 'a', 'b'))
-
-
+
+
def test_suite():
return TestSuite((
=== Zope3/src/zope/app/browser/services/tests/test_editconfiguration.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/services/tests/test_editconfiguration.py:1.1.2.2 Mon Dec 23 17:49:29 2002
+++ Zope3/src/zope/app/browser/services/tests/test_editconfiguration.py Tue Dec 24 21:20:17 2002
@@ -60,7 +60,7 @@
view = EditConfiguration(d, TestRequest())
view.remove_objects(['2', '7'])
self.assertEqual(d, {'1': c1})
-
+
self.failUnless(
getEvents(IObjectRemovedEvent,
filter = lambda event: event.object == c2),
=== Zope3/src/zope/app/browser/services/tests/test_field_widget.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/browser/services/tests/test_field_widget.py:1.1.2.2 Tue Dec 24 07:50:53 2002
+++ Zope3/src/zope/app/browser/services/tests/test_field_widget.py Tue Dec 24 21:20:17 2002
@@ -28,7 +28,7 @@
class FakeComponentLocation:
default = None
-
+
def __init__(self, context, type):
self.context = context
self.type = type
@@ -36,7 +36,7 @@
def validate(self, value): pass
__name__ = 'X'
-
+
class I1(Interface): pass
class I2(Interface): pass
@@ -78,7 +78,7 @@
self.assertEqual(widget(), expected)
request.form['field.X'] = u'/++etc++Services/Packages/default/c2'
-
+
expected = (
'<select name="field.X">\n'
'<option></option>\n'
@@ -96,7 +96,7 @@
widget = ComponentLocationWidget(fake, request)
self.assertEqual(widget._convert(u''), None)
self.assertEqual(widget._convert(u'/a'), u'/a')
-
+
def test_suite():
return TestSuite((
=== Zope3/src/zope/app/browser/services/tests/test_rolecontents.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/services/tests/test_rolecontents.py:1.1.2.1 Mon Dec 23 14:31:14 2002
+++ Zope3/src/zope/app/browser/services/tests/test_rolecontents.py Tue Dec 24 21:20:17 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 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.
-#
+#
##############################################################################
"""
@@ -29,7 +29,7 @@
class Dummy:
__implements__ = IDummy
-
+
class Test(BaseTestContentsBrowserView, unittest.TestCase):
def _TestView__newContext(self):