Current Path : /usr/lib/python2.7/dist-packages/twisted/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/test/test_text.pyc |
=Nc @ s d d l m Z d d l m Z d d l m Z d Z d a d Z d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ e e e g Z d S( i( t unittest( t text( t StringIOs Every attempt to employ mathematical methods in the study of chemical questions must be considered profoundly irrational and contrary to the spirit of chemistry ... If mathematical analysis should ever hold a prominent place in chemistry - an aberration which is happily almost impossible - it would occasion a rapid and widespread degeneration of that science. -- Auguste Comte, Philosophie Positive, Paris, 1838 iH c C s | a d S( N( t lineWidth( t n( ( s: /usr/lib/python2.7/dist-packages/twisted/test/test_text.pyt set_lineWidth s t WrapTestc B s, e Z d Z d Z d Z d Z RS( c C s( t j | _ t j t t | _ d S( N( t sampleTextt splitt sampleSplitTextR t wordWrapR t output( t self( ( s: /usr/lib/python2.7/dist-packages/twisted/test/test_text.pyt setUp s c C s\ g } x$ | j D] } | j | j q Wt | } t | j } | j | | d S( s Compare the number of words.N( R t extendR t lenR t assertEqual( R t wordst linet wordCountt sampleTextWordCount( ( s: /usr/lib/python2.7/dist-packages/twisted/test/test_text.pyt test_wordCount"