#NEWLINE# def test_add_options( self ) : #NEWLINE# #INDENT# left = core . Options ( arguments . Argument ( 'left' ) ) #NEWLINE# right = core . Options ( arguments . Argument ( 'right' ) ) #NEWLINE# combined = ( left + right ) #NEWLINE# dummy_tokens = DummyTokens ( 'leftval' , 'rightval' ) #NEWLINE# ( kwargs , blocks ) = combined . parse ( dummy_parser , dummy_tokens ) #NEWLINE# self . assertEqual ( blocks , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( len ( kwargs ) , 2 ) #NEWLINE# dummy_context = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( kwargs [ 'left' ] . resolve ( dummy_context ) , 'leftval' ) #NEWLINE# self . assertEqual ( kwargs [ 'right' ] . resolve ( dummy_context ) , 'rightval' )