What docs are you looking at?? The module docs at http://docs.python.org/lib/module-doctest.html have a complete example of testing a module with a main function. Or you can use the code in my last post.

Kent

Jacob S. wrote:
Hi.

    Okay, so I look at the documentation at it says (in my words):

"First Class - DocTest -- Make a test object with such and such attributes
that you can test.
Second Class - i don't remember the name - Make Jacob look stupid with big
words
Third Class - DocTestSuite - Convert a doctest object to a unittest object -
Okay... so how does that help?
Fourth Class - DocTestFinder - Find the docstrings that contain test code
and extract them."

So, my question, I guess, is How did the documentation help, and, How do I
have doctest test all of my module's function's docstrings?

Thanks in advance,
Jacob Schmidt

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to