#NEWLINE# def test_get_simple_contrapunctus_duration_set( self ) : #NEWLINE# #INDENT# '\n        Ensures that the duration indication is correctly set.\n        ' #NEWLINE# raw = [ 5 , 7 , 6 , 5 , 8 , 7 , 9 , 8 , 7 , 6 , 5 ] #NEWLINE# result = get_simple_contrapunctus ( raw , 4 ) #NEWLINE# expected = "d' 4 f' e' d' g' f' a' g' f' e' d' 1" #NEWLINE# self . assertEqual ( expected , result ) #NEWLINE# result = get_simple_contrapunctus ( raw , 2 ) #NEWLINE# expected = "d' 2 f' e' d' g' f' a' g' f' e' d' 1" #NEWLINE# self . assertEqual ( result , result ) #NEWLINE# result = get_simple_contrapunctus ( raw , 1 ) #NEWLINE# expected = "d' 1 f' e' d' g' f' a' g' f' e' d'" #NEWLINE# self . assertEqual ( expected , result )