[Zope3-checkins] CVS: Zope3/src/zope/app/renderer/tests - test_directives.py:1.3

Sidnei da Silva sidnei at x3ng.com.br
Tue Aug 5 11:25:35 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/renderer/tests
In directory cvs.zope.org:/tmp/cvs-serv14539/src/zope/app/renderer/tests

Modified Files:
	test_directives.py 
Log Message:
Reasonably big batch of changes. Added methods to query factories by interface. Added tests for them. Registered all fields from zope.schema as factories. Added basic tests for that. Made the contentdirective use a dottedname instead of a class as the id when an id is not provided. Cleanspace Whitening here and there.

=== Zope3/src/zope/app/renderer/tests/test_directives.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/renderer/tests/test_directives.py:1.2	Sat Aug  2 07:20:09 2003
+++ Zope3/src/zope/app/renderer/tests/test_directives.py	Tue Aug  5 10:25:00 2003
@@ -32,7 +32,7 @@
 
 class TestSource(unicode):
     implements(ITestSource)
-    
+
 
 class TestRenderer(BrowserView):
     __used_for__ = ITestSource
@@ -42,12 +42,12 @@
 
     def test_sourcetype(self):
         self.assertEqual(SourceTypes.getAllTitles(), [])
-        self.context = xmlconfig.file("tests/renderer.zcml", zope.app.renderer)
+        context = xmlconfig.file("tests/renderer.zcml", zope.app.renderer)
         self.assertEqual(SourceTypes.getAllTitles(), ['Test Text'])
         self.assertEqual(
             SourceTypes.get('Test Text'),
             zope.app.renderer.tests.test_directives.ITestSource)
-        
+
         obj = SourceTypes.createObject('Test Text', 'Source')
         self.assertEqual(
             getView(obj, None, TestRequest()).__class__,




More information about the Zope3-Checkins mailing list