fix uglyNamingConvention

This commit is contained in:
Benjamin Peterson 2011-06-19 17:49:13 -05:00
parent a977acc0fe
commit 206cd1c284
1 changed files with 7 additions and 7 deletions

View File

@ -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):