#NEWLINE# def test_subunitNotInstalled( self ) : #NEWLINE# #INDENT# '\n        If subunit is not installed, TestProtocolClient will be None, and\n        SubunitReporter will raise an error when you try to construct it.\n        ' #NEWLINE# stream = NativeStringIO ( ) #NEWLINE# self . patch ( reporter , 'TestProtocolClient' , None ) #NEWLINE# e = self . assertRaises ( Exception , reporter . SubunitReporter , stream ) #NEWLINE# self . assertEqual ( 'Subunit not available' , str ( e ) )