Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/sample_doctest.pyc
mò ‚=5Dc @ sg d Z d „ Z d „ Z d „ Z d „ Z d Z d „ Z d „ Z h d d <d d <Z d „ Z d S( s 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. >>> 2+2 4 c C s d S( s+ >>> 2+2 5 >>> 2+2 4 N( ( ( ( t) /usr/lib/python2.4/test/sample_doctest.pyt foo s c C s d S( s >>> 2+2 4 N( ( ( ( R t bar s c C s d S( sU >>> import test.test_doctest >>> test.test_doctest.sillySetup True N( ( ( ( R t test_silly_setup s c C s d S( sj >>> if 1: ... print 'a' ... print ... print 'b' a <BLANKLINE> b N( ( ( ( R t w_blank( s i c C s d S( s >>> x 1 N( ( ( ( R t x_is_one4 s c C s d S( s >>> y 1 N( ( ( ( R t y_is_one: s t goodsG >>> 42 42 t badsH >>> 42 666 c C s d k } | i ƒ S( N( t doctestt DocTestSuite( R ( ( R t test_suiteJ s N( t __doc__R R R R t xR R t __test__R ( R R R R R R R R R ( ( R t ? s