[lang-ref] ( public_method ) ( python )
def test_public_method():
class Class01():
def method01(self):
return 'method01'
# In Python, names without a leading underscore are public by convention.
c = Class01()
assert c.method01() == 'method01'