If I'm defining a new class and I want to implement a TestSuite for
it, well, there is some stuff built in, but I should perhaps also add
methods called "_test_X" for various values of X.  If I doctest these
via

  sage: object._test_X()

then the same doctest will get run twice: once here, and once when I
do "TestSuite(object)" elsewhere in the file.  Should this be
avoided?  I need to included doctests for 100% coverage.  Should I
mark the doctest for _test_X as "not tested" to skip this?

  sage: object._test_X() # not tested

I'm writing some methods for a test suite which may take a few
seconds, and I don't want to double this for no reason...

--
John

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to