|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21572/root/usr/lib/python2.4/test/ |
Upload File : |
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