#NEWLINE# @ unittest . skipUnless ( HAVE_IPYTHON , 'requires IPython' ) #NEWLINE# def test__pretty( self ) : #NEWLINE# #INDENT# res = pretty ( self . rcg1 ) #NEWLINE# ann = get_annotations ( ) #NEWLINE# ann [ 'seed' ] = self . seed1 #NEWLINE# ann = pretty ( ann ) . replace ( '\n ' , '\n  ' ) #NEWLINE# targ = ( ( ( 'RecordingChannelGroup with ' + ( '%s units, %s analogsignalarrays, %s recordingchannels\n' % ( len ( targ . units1a ) , len ( self . sigarrs1a ) , len ( self . rchans1a ) ) ) ) + ( "name: '%s'\ndescription: '%s'\n" % ( self . rcg1 . name , self . rcg1 . description ) ) ) + ( 'annotations: %s' % ann ) ) #NEWLINE# self . assertEqual ( res , targ )