class MyClass(object):
    """MyClass
    >>> m = MyClass()
    >>> m.hello()
    hello
    >>> m.world()
    world
    """

def hello(self):
    """method hello"""
print('hello')
object reuse in python doctest