#NEWLINE# def test_all_supported( self ) : #NEWLINE# #INDENT# objects = [ Block , Segment , RecordingChannelGroup , RecordingChannel , Unit , AnalogSignal , AnalogSignalArray , IrregularlySampledSignal , SpikeTrain , Event , Epoch , Spike , EventArray , EpochArray ] #NEWLINE# res = generate_one_simple_block ( supported_objects = seg2 ) #NEWLINE# self . assertTrue ( isinstance ( res , Block ) ) #NEWLINE# assert_neo_object_is_compliant ( res ) #NEWLINE# self . assertEqual ( len ( res . segments ) , 3 ) #NEWLINE# ( seg1 , seg2 , seg3 ) = res . segments #NEWLINE# self . assertEqual ( len ( seg1 . analogsignals ) , 4 ) #NEWLINE# self . assertEqual ( len ( seg1 . analogsignalarrays ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg1 . irregularlysampledsignals ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg1 . spiketrains ) , 6 ) #NEWLINE# self . assertEqual ( len ( seg1 . spikes ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg1 . events ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg1 . epochs ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg1 . eventarrays ) , 3 ) #NEWLINE# self . assertEqual ( len ( seg1 . epocharrays ) , 2 ) #NEWLINE# self . assertEqual ( len ( seg2 . analogsignals ) , 4 ) #NEWLINE# self . assertEqual ( len ( seg2 . analogsignalarrays ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg2 . irregularlysampledsignals ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg2 . spiketrains ) , 6 ) #NEWLINE# self . assertEqual ( len ( seg2 . spikes ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg2 . events ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg2 . epochs ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg2 . eventarrays ) , 3 ) #NEWLINE# self . assertEqual ( len ( seg2 . epocharrays ) , 2 ) #NEWLINE# self . assertEqual ( len ( seg3 . analogsignals ) , 4 ) #NEWLINE# self . assertEqual ( len ( seg3 . analogsignalarrays ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg3 . irregularlysampledsignals ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg3 . spiketrains ) , 6 ) #NEWLINE# self . assertEqual ( len ( seg3 . spikes ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg3 . events ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg3 . epochs ) , 0 ) #NEWLINE# self . assertEqual ( len ( seg3 . eventarrays ) , 3 ) #NEWLINE# self . assertEqual ( len ( seg3 . epocharrays ) , 2 )