On Oct 7, 2009, at 1:32 PM, Simon King wrote: > Hi! > > I have a class with a show() method. How can this be doc tested? > > If there is no reasonable way to doc test a show() method: What can > one do that it does not count negatively for the doc test coverage?
You can still doctest it. In doctest mode, show() should just produce a png (or something like that) but not pop it up. We don't have a way of telling now if it produces the correct image(s), but at least we can make sure it doesn't raise an exception. - Robert --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---