[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/tests - test_field_widget.py:1.7
Jim Fulton
jim@zope.com
Sun, 23 Mar 2003 17:36:07 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services/tests
In directory cvs.zope.org:/tmp/cvs-serv15726/src/zope/app/browser/services/tests
Modified Files:
test_field_widget.py
Log Message:
Renamed ++etc++Services to ++etc++site and renamed
++etc++ApplicationController to ++etc++process.
=== Zope3/src/zope/app/browser/services/tests/test_field_widget.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/services/tests/test_field_widget.py:1.6 Tue Mar 18 16:02:20 2003
+++ Zope3/src/zope/app/browser/services/tests/test_field_widget.py Sun Mar 23 17:35:36 2003
@@ -60,7 +60,7 @@
PlacefulSetup.setUp(self)
self.buildFolders()
self.rootFolder.setServiceManager(ServiceManager())
- default = traverse(self.rootFolder, '++etc++Services/default')
+ default = traverse(self.rootFolder, '++etc++site/default')
default.setObject('c1', C())
default.setObject('c2', C())
default.setObject('c3', C())
@@ -81,22 +81,22 @@
expected = (
'<select name="field.X">'
'<option></option>'
- '<option>/++etc++Services/default/c1</option>'
- '<option>/++etc++Services/default/c2</option>'
- '<option>/++etc++Services/default/c3</option>'
+ '<option>/++etc++site/default/c1</option>'
+ '<option>/++etc++site/default/c2</option>'
+ '<option>/++etc++site/default/c3</option>'
'</select>'
)
self.assertEqual(widget(), expected)
- self.request.form['field.X'] = u'/++etc++Services/default/c2'
+ self.request.form['field.X'] = u'/++etc++site/default/c2'
expected = (
'<select name="field.X">'
'<option></option>'
- '<option>/++etc++Services/default/c1</option>'
- '<option selected>/++etc++Services/default/c2</option>'
- '<option>/++etc++Services/default/c3</option>'
+ '<option>/++etc++site/default/c1</option>'
+ '<option selected>/++etc++site/default/c2</option>'
+ '<option>/++etc++site/default/c3</option>'
'</select>'
)
@@ -139,9 +139,9 @@
'path: '
'<select name="field.X.p">'
'<option></option>'
- '<option>/++etc++Services/default/c1</option>'
- '<option>/++etc++Services/default/c2</option>'
- '<option>/++etc++Services/default/c3</option>'
+ '<option>/++etc++site/default/c1</option>'
+ '<option>/++etc++site/default/c2</option>'
+ '<option>/++etc++site/default/c3</option>'
'</select>'
'<br>'
'dotted name: '
@@ -153,15 +153,15 @@
self.assertEqual(widget.hidden(), '')
self.request.form['field.X.p'] = (
- u'/++etc++Services/default/c2')
+ u'/++etc++site/default/c2')
expected = (
'path: '
'<select name="field.X.p">'
'<option></option>'
- '<option>/++etc++Services/default/c1</option>'
- '<option selected>/++etc++Services/default/c2</option>'
- '<option>/++etc++Services/default/c3</option>'
+ '<option>/++etc++site/default/c1</option>'
+ '<option selected>/++etc++site/default/c2</option>'
+ '<option>/++etc++site/default/c3</option>'
'</select>'
'<br>'
'dotted name: '
@@ -172,7 +172,7 @@
self.failUnless(widget.haveData())
self.assertEqual(widget.hidden(),
'<input type="hidden" name="field.X.p" value="'
- '/++etc++Services/default/c2'
+ '/++etc++site/default/c2'
'" />'
)
@@ -191,9 +191,9 @@
'path: '
'<select name="field.X.p">'
'<option></option>'
- '<option>/++etc++Services/default/c1</option>'
- '<option>/++etc++Services/default/c2</option>'
- '<option>/++etc++Services/default/c3</option>'
+ '<option>/++etc++site/default/c1</option>'
+ '<option>/++etc++site/default/c2</option>'
+ '<option>/++etc++site/default/c3</option>'
'</select>'
'<br>'
'dotted name: '