[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - Request.py:1.1.2.3.14.2 testResources.py:1.1.2.5.8.2 testSkins.py:1.1.2.10.8.2

Jim Fulton jim@zope.com
Mon, 3 Jun 2002 14:25:42 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv14482/lib/python/Zope/ComponentArchitecture/tests

Modified Files:
      Tag: Zope3InWonderland-branch
	Request.py testResources.py testSkins.py 
Log Message:
Changed list attribute syntax to be more XML standard.
In particular, list attributes now expect items to be separated by
whitespace, rather than commas.


=== Zope3/lib/python/Zope/ComponentArchitecture/tests/Request.py 1.1.2.3.14.1 => 1.1.2.3.14.2 ===
 class Request:
 
-    def __init__(self, iface, skin=''):
+    def __init__(self, iface, skin='default'):
         self._iface     = iface
         self._skin      = skin
 


=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testResources.py 1.1.2.5.8.1 => 1.1.2.5.8.2 ===
         getService(None,'Resources').provideResource('test', I2, C1)
         self.assertEqual(getResource(None, 'test', Request(I2)).__class__, C1) 
-        getService(None,'Skins').defineSkin('foo', I2, ('foo', ''))
+        getService(None,'Skins').defineSkin('foo', I2, ('foo', 'default'))
         self.assertEqual(
             getResource(None, 'test', Request(I2, 'foo')).__class__,
             C1) 
@@ -57,9 +57,9 @@
 
         getService(None,'Resources').provideResource('test', I2, C1)
         self.assertEqual(
-            getResource(None, 'test', Request(I2, '') ).__class__,
+            getResource(None, 'test', Request(I2, 'default') ).__class__,
             C1) 
-        getService(None,'Skins').defineSkin('foo', I2, ('foo', ''))
+        getService(None,'Skins').defineSkin('foo', I2, ('foo', 'default'))
         self.assertEqual(
             getResource(None, 'test', Request(I2, 'foo')).__class__,
             C1)


=== Zope3/lib/python/Zope/ComponentArchitecture/tests/testSkins.py 1.1.2.10.8.1 => 1.1.2.10.8.2 ===
         getService(None, 'Views').provideView(I1, 'test', I2, [C1])
         self.assertEqual(getView(O(), 'test', Request(I2)).__class__, C1) 
-        getService(None, 'Skins').defineSkin('foo', I2, ('foo', ''))
+        getService(None, 'Skins').defineSkin('foo', I2, ('foo', 'default'))
         self.assertEqual(getView(O(), 'test', Request(I2, 'foo')).__class__,
                          C1) 
         getService(None, 'Views').provideView(None, 'test', I2, [C2])
@@ -72,7 +72,7 @@
         getService(None, 'Views').provideView(I1, 'test', I2, [C1])
         self.assertEqual(getView(O(), 'test', 
             Request(I2,'') ).__class__, C1) 
-        getService(None, 'Skins').defineSkin('foo', I2, ('foo', ''))
+        getService(None, 'Skins').defineSkin('foo', I2, ('foo', 'default'))
 
         self.assertEqual(getView(O(), 'test', 
             Request(I2, 'foo')).__class__, C1)