[lang-ref] ( call_parent_method ) ( python )

def test_call_parent_method():
    # super().method01()
    class Parent:
        def method01(self):
            r = ['parent method01']
            return r

    class Child(Parent):
        def method01(self):
            r = super().method01()
            r.append('child method01')
            return r

    c = Child()

    r = c.method01()

    assert r == ['parent method01', 'child method01']