[Zope-Checkins] CVS: Zope/lib/python/Interface/tests - testDocument.py:1.3 testInterface.py:1.3 unitfixtures.py:1.3

Chris McDonough chrism@zope.com
Mon, 10 Jun 2002 12:47:39 -0400


Update of /cvs-repository/Zope/lib/python/Interface/tests
In directory cvs.zope.org:/tmp/cvs-serv26345/tests

Modified Files:
	testDocument.py testInterface.py unitfixtures.py 
Log Message:
For "old" Interface packages b/w compatibility:

  Because the "old" Interface package allowed the import of the Attribute
  class directly from the Interface package, and some packages
  (such as CMF) expect a class back from "from Interface import Attribute":

  - Renamed Attribute.py to _Attribute.py and did the necessary
    housekeeping to make sure all the other parts of the Interface
    package knows about the change.

  - Changed __init__.py to import Attribute from _Attribute

New features and changes:

  - Removed iclass.py  (it was no longer used).

  - Gave the base interface class (Interface._InterfaceClass) a __hash__
    method as ExtensionClass instances do not hash like normal
    instances, and we require that interfaces be hashable in order to
    store them as dictionary keys and whatnot in registries.
  


=== Zope/lib/python/Interface/tests/testDocument.py 1.2 => 1.3 ===
 from unittest import TestCase, TestSuite, main, makeSuite
 from Interface import Interface
-from Interface.Attribute import Attribute
+from Interface._Attribute import Attribute
 
 class Test(TestCase):
 


=== Zope/lib/python/Interface/tests/testInterface.py 1.2 => 1.3 ===
 from Interface.Implements import objectImplements
 from Interface import Interface
-from Interface.Attribute import Attribute
+from Interface._Attribute import Attribute
 
 class InterfaceTests(unittest.TestCase):
 


=== Zope/lib/python/Interface/tests/unitfixtures.py 1.2 => 1.3 ===
 ##############################################################################
 from Interface import Interface
-from Interface.Attribute import Attribute
+from Interface._Attribute import Attribute
 
 class mytest(Interface):
     pass