#NEWLINE# def assertForwardsToSubunit( self , methodName , * args , **kwargs ) : #NEWLINE# #INDENT# "\n        Assert that 'methodName' on L{SubunitReporter} forwards to the\n        equivalent method on subunit.\n\n        Checks that the return value from subunit is returned from the\n        L{SubunitReporter} and that the reporter writes the same data to its\n        stream as subunit does to its own.\n\n        Assumes that the method on subunit has the same name as the method on\n        L{SubunitReporter}.\n        " #NEWLINE# stream = BytesIO ( ) #NEWLINE# subunitClient = reporter . TestProtocolClient ( stream ) #NEWLINE# subunitReturn = getattr ( subunitClient , methodName ) ( * args , ** kwargs ) #NEWLINE# subunitOutput = stream . getvalue ( ) #NEWLINE# reporterReturn = getattr ( self . result , methodName ) ( * args , ** kwargs ) #NEWLINE# self . assertEqual ( subunitReturn , reporterReturn ) #NEWLINE# self . assertEqual ( subunitOutput , self . stream . getvalue ( ) )