#NEWLINE# @ unittest . skipUnless ( HAVE_IPYTHON , 'requires IPython' ) #NEWLINE# def test__pretty( self ) : #NEWLINE# #INDENT# ann = get_annotations ( ) #NEWLINE# ann [ 'seed' ] = self . seed1 #NEWLINE# ann = pretty ( ann ) . replace ( '\n ' , '\n  ' ) #NEWLINE# res = pretty ( self . rchan1 ) #NEWLINE# targ = ( ( ( 'RecordingChannel with ' + ( '%s analogsignals, %s irregularlysampledsignals\n' % ( len ( self . sigs1 ) , len ( self . irsigs1 ) ) ) ) + ( "name: '%s'\ndescription: '%s'\n" % ( self . rchan1 . name , self . rchan1 . description ) ) ) + ( 'annotations: %s' % ann ) ) #NEWLINE# self . assertEqual ( res , targ )