<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"""This is a sample module that doesn't really test anything all that
   interesting.

It simply has a few tests, some of which succeed and some of which fail.

It's important that the numbers remain constant as another test is
testing the running of these tests.


&gt;&gt;&gt; 2+2
4
"""


def foo():
    """

    &gt;&gt;&gt; 2+2
    5

    &gt;&gt;&gt; 2+2
    4
    """

def bar():
    """

    &gt;&gt;&gt; 2+2
    4
    """

def test_silly_setup():
    """

    &gt;&gt;&gt; import test.test_doctest
    &gt;&gt;&gt; test.test_doctest.sillySetup
    True
    """

def w_blank():
    """
    &gt;&gt;&gt; if 1:
    ...    print 'a'
    ...    print
    ...    print 'b'
    a
    &lt;BLANKLINE&gt;
    b
    """

x = 1
def x_is_one():
    """
    &gt;&gt;&gt; x
    1
    """

def y_is_one():
    """
    &gt;&gt;&gt; y
    1
    """

__test__ = {'good': """
                    &gt;&gt;&gt; 42
                    42
                    """,
            'bad':  """
                    &gt;&gt;&gt; 42
                    666
                    """,
           }

def test_suite():
    import doctest
    return doctest.DocTestSuite()
</pre></body></html>