#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# self . protocol . answers . append ( 'info/names=\nsomething a documentation string\nmulti/path a documentation string\n' ) #NEWLINE# info = TorInfo ( self . protocol ) #NEWLINE# self . assertTrue ( hasattr ( info , 'something' ) ) #NEWLINE# self . assertTrue ( hasattr ( info , 'multi' ) ) #NEWLINE# self . assertTrue ( hasattr ( getattr ( info , 'multi' ) , 'path' ) ) #NEWLINE# self . protocol . answers . append ( 'something=\nfoo' ) #NEWLINE# d = info . something ( ) #NEWLINE# d . addCallback ( CheckAnswer ( self , 'foo' ) ) #NEWLINE# return d