#NEWLINE# def test_add_arguments( self ) : #NEWLINE# #INDENT# p = argparse . ArgumentParser ( ) #NEWLINE# linux . BuildEnvironment . add_arguments ( p ) #NEWLINE# args = [ ( '--' + linux . _CMAKE_FLAGS ) , 'a' , ( '--' + linux . _CMAKE_PATH ) , 'b' ] #NEWLINE# argobj = p . parse_args ( args ) #NEWLINE# d = vars ( argobj ) #NEWLINE# self . assertEqual ( 'a' , d [ linux . _CMAKE_FLAGS ] ) #NEWLINE# self . assertEqual ( 'b' , d [ linux . _CMAKE_PATH ] ) #NEWLINE# self . assertEqual ( os . getcwd ( ) , d [ common . _PROJECT_DIR ] ) #NEWLINE# self . assertNotIn ( android . _NDK_HOME , d )