diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-06-19 22:49:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-06-19 22:49:22 (GMT) |
commit | 019d0f27a3fc8d4daa7caea8c041cd26d5873950 (patch) | |
tree | 72dedaec43fa5eea91aaf7231573fb536ca0788b | |
parent | 4b4b673eae86c4ac001a46f22a17330a0f11b42d (diff) | |
parent | 206cd1c284c2bdce943470a4c489012f37831959 (diff) | |
download | cpython-019d0f27a3fc8d4daa7caea8c041cd26d5873950.zip cpython-019d0f27a3fc8d4daa7caea8c041cd26d5873950.tar.gz cpython-019d0f27a3fc8d4daa7caea8c041cd26d5873950.tar.bz2 |
merge 3.2
-rw-r--r-- | Lib/test/test_super.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_super.py b/Lib/test/test_super.py index 5287402..914216d 100644 --- a/Lib/test/test_super.py +++ b/Lib/test/test_super.py @@ -44,33 +44,33 @@ class G(A): class TestSuper(unittest.TestCase): - def testBasicsWorking(self): + def test_basics_working(self): self.assertEqual(D().f(), 'ABCD') - def testClassGetattrWorking(self): + def test_class_getattr_working(self): self.assertEqual(D.f(D()), 'ABCD') - def testSubclassNoOverrideWorking(self): + def test_subclass_no_override_working(self): self.assertEqual(E().f(), 'ABCD') self.assertEqual(E.f(E()), 'ABCD') - def testUnboundMethodTransferWorking(self): + def test_unbound_method_transfer_working(self): self.assertEqual(F().f(), 'ABCD') self.assertEqual(F.f(F()), 'ABCD') - def testClassMethodsStillWorking(self): + def test_class_methods_still_working(self): self.assertEqual(A.cm(), (A, 'A')) self.assertEqual(A().cm(), (A, 'A')) self.assertEqual(G.cm(), (G, 'A')) self.assertEqual(G().cm(), (G, 'A')) - def testSuperInClassMethodsWorking(self): + def test_super_in_class_methods_working(self): d = D() self.assertEqual(d.cm(), (d, (D, (D, (D, 'A'), 'B'), 'C'), 'D')) e = E() self.assertEqual(e.cm(), (e, (E, (E, (E, 'A'), 'B'), 'C'), 'D')) - def testSuperWithClosure(self): + def test_super_with_closure(self): # Issue4360: super() did not work in a function that # contains a closure class E(A): |