[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/tests - testIInstanceFactory.py:1.1.4.3

Jim Fulton jim@zope.com
Fri, 7 Jun 2002 10:41:30 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/tests
In directory cvs.zope.org:/tmp/cvs-serv12187/lib/python/Zope/App/Formulator/tests

Modified Files:
      Tag: Zope-3x-branch
	testIInstanceFactory.py 
Log Message:
Merging in Zope3InWonderland-branch, which implemented the following
proposals (see
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/OldProposals): 
- RenameAllowToRequire

- GroupClassRelatedDirectivesInClassDirective

- ViewInterfaceAndSimplification

- ConsistentUseOfSpacesAsDelimitersInZCMLAttributes

- TwoArgumentViewConstructors

- ImplementsInZCML

- SimpleViewCreationInZCML

- RemoveGetView

- ReplaceProtectWithAllow

- ViewMethodsAsViews

- MergeProtectionAndComponentDefinitions

There were also various security fixes resulting of better integration
of security with components.


=== Zope3/lib/python/Zope/App/Formulator/tests/testIInstanceFactory.py 1.1.4.2 => 1.1.4.3 ===
         self.realize(context)
 
-
-    def getContext(self):
-        '''See interface IInstanceFactory'''
-        return self.context
-
-
     def realize(self, context):
         '''See interface IInstanceFactory'''
         self.context = context
@@ -79,7 +73,7 @@
         context = ContentObject()
         factory = Factory()
         factory.context = context
-        self.assertEqual(factory.getContext(), context)
+        self.assertEqual(factory.context, context)
 
         
 
@@ -90,4 +84,3 @@
 
 if __name__=='__main__':
     unittest.TextTestRunner().run(test_suite())
-