test/utils/tabular_report_test.py
def testDocstring(self):
        '''
        doctest's automated tests only check one line at a time,
        while we want the entire output, so we make our own
        '''
        # Run the example
        docstring = doctest.script_from_examples(TabularReport.__doc__ )
        with capture_output() as (out, err):
            exec(docstring)

        # Add '#' like doctest.script_from_examples() does.
        # The reference lines are the last x lines of the docstring
       
        out = ['#  '+x for x in out.getvalue().splitlines()]
        ref = docstring.splitlines()[-len(out):]
        
        assert( strip_all(out) == strip_all(ref))

        doctest's automated tests only check one line at a time,
        while we want the entire output, so we make our own
        
doctest's automated tests only check one line at a time,
while we want the entire output, so we make our own
doctest ' s automated tests only check one line at a time while we want the entire output so we make our own
def testDocstring(self):
        docstring = doctest.script_from_examples(TabularReport.__doc__ )
        with capture_output() as (out, err):
            exec(docstring)
        out = ['#  '+x for x in out.getvalue().splitlines()]
        ref = docstring.splitlines()[-len(out):]
        assert( strip_all(out) == strip_all(ref))
def testDocstring ( self ) : docstring = doctest . script_from_examples ( TabularReport . __doc__ ) with capture_output ( ) as ( out , err ) : exec ( docstring ) out = [ '#  ' + x for x in out . getvalue ( ) . splitlines ( ) ] ref = docstring . splitlines ( ) [ - len ( out ) : ] assert ( strip_all ( out ) == strip_all ( ref ) )
doctest's automated tests only check one line at a time,
while we want the entire output, so we make our own
doctest ' s automated tests only check one line at a time while we want the entire output so we make our own
'''
        doctest's automated tests only check one line at a time,
        while we want the entire output, so we make our own
        ''' # Run the example # Add '#' like doctest.script_from_examples() does. # The reference lines are the last x lines of the docstring
self