[Zope3-checkins] CVS: Zope3/src/zodb/code/tests - test_patch.py:1.1.2.3

Barry Warsaw barry@wooz.org
Mon, 23 Dec 2002 17:45:50 -0500


Update of /cvs-repository/Zope3/src/zodb/code/tests
In directory cvs.zope.org:/tmp/cvs-serv22894

Modified Files:
      Tag: NameGeddon-branch
	test_patch.py 
Log Message:
fix


=== Zope3/src/zodb/code/tests/test_patch.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zodb/code/tests/test_patch.py:1.1.2.2	Mon Dec 23 16:58:06 2002
+++ Zope3/src/zodb/code/tests/test_patch.py	Mon Dec 23 17:45:49 2002
@@ -6,7 +6,7 @@
 class TestNameFinder(unittest.TestCase):
 
     def testNameFinder(self):
-        nf = NameFinder(ATestModule)
+        nf = NameFinder(atestmodule)
         names = nf.names()
         for name in ("Foo", "Bar", "aFunc", "anotherFunc",
                      "Foo.meth", "Foo.Nested", "Bar.bar",
@@ -18,9 +18,9 @@
 class TestPatch(unittest.TestCase):
 
     def testPatch(self):
-        moddict = ATestModule.__dict__
-        convert(ATestModule, {})
-        newdict = ATestModule.__dict__
+        moddict = atestmodule.__dict__
+        convert(atestmodule, {})
+        newdict = atestmodule.__dict__
         
         L1 = moddict.keys()
         L2 = newdict.keys()
@@ -28,7 +28,7 @@
         L2.sort()
         self.assertEqual(L1, L2)
 
-        self.assertEqual(ATestModule.__dict__, ATestModule.aFunc.func_globals)
+        self.assertEqual(atestmodule.__dict__, atestmodule.aFunc.func_globals)
 
 def test_suite():
     s = unittest.TestSuite()