Hi, sorry I still don't get this. 

If I write my code in a test.sage file -- then load or attach it from Sage 
interactive.  Then how do I call doctest on it ?     Previously I write my 
code in a test.py file , then from Sage interactive session I call import 
test  ,  then doctest.testmod(test)   .     



For instance 

test.sage


def foo(p):
    """
    sage: var('x')
    x
    sage: test(1/2*x)
    1/2*x
    """
    print x


Also if all my development is in Sage,  then the preferred method is writing 
code in .sage instead .py  ?   

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to