#NEWLINE# def test_segment( self ) : #NEWLINE# #INDENT# objects = [ Segment ] #NEWLINE# res = generate_from_supported_objects ( objects ) #NEWLINE# self . assertTrue ( isinstance ( res , Segment ) ) #NEWLINE# assert_neo_object_is_compliant ( res ) #NEWLINE# self . assertEqual ( len ( res . analogsignals ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . analogsignalarrays ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . irregularlysampledsignals ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . spiketrains ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . spikes ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . events ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . epochs ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . eventarrays ) , 0 ) #NEWLINE# self . assertEqual ( len ( res . epocharrays ) , 0 )