#NEWLINE# def test_sequence_repeats( self ) : #NEWLINE# #INDENT# '\n        Ensure sequences can be repeated\n        ' #NEWLINE# s1 = self . make_sequence ( ) #NEWLINE# repeat = ( s1 * 2 ) #NEWLINE# from sebastian.core import OFFSET_64 , MIDI_PITCH , DURATION_64 #NEWLINE# self . assertEqual ( self . _elements , [ { #NEWLINE# #INDENT# MIDI_PITCH : 50 , #NEWLINE# OFFSET_64 : 16 , #NEWLINE# DURATION_64 : 17 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# MIDI_PITCH : 53 , #NEWLINE# OFFSET_64 : 19 , #NEWLINE# DURATION_64 : 20 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# MIDI_PITCH : 50 , #NEWLINE# OFFSET_64 : 55 , #NEWLINE# DURATION_64 : 17 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# MIDI_PITCH : 53 , #NEWLINE# OFFSET_64 : 58 , #NEWLINE# DURATION_64 : 20 , #NEWLINE# #UNINDENT# } ] )