#NEWLINE# def test_flags( self ) : #NEWLINE# #INDENT# 'Test that flag value specified on the command line are correctly\n        stored between run.' #NEWLINE# bento_info = 'Name: foo\n\nFlag: debug\n    Description: debug flag\n    Default: true\n\nHookFile: bscript\n\nLibrary:\n    if flag(debug):\n        Modules: foo\n    else:\n        Modules: bar\n' #NEWLINE# self . top_node . make_node ( 'bento.info' ) . write ( bento_info ) #NEWLINE# self . top_node . make_node ( 'bscript' ) . write ( "import sys\nfrom bento.commands import hooks\n\n@hooks.pre_build\ndef pre_build(context):\n    if not context.pkg.py_modules == ['bar']:\n        sys.exit(57)\n" ) #NEWLINE# self . top_node . make_node ( 'foo.py' ) . write ( '' ) #NEWLINE# self . top_node . make_node ( 'bar.py' ) . write ( '' ) #NEWLINE# p = multiprocessing . Process ( target = main , args = ( [ 'configure' , '--debug=false' ] , ) ) #NEWLINE# p . start ( ) #NEWLINE# p . join ( ) #NEWLINE# p = multiprocessing . Process ( target = main , args = ( [ 'build' ] , ) ) #NEWLINE# p . start ( ) #NEWLINE# p . join ( ) #NEWLINE# self . assertEqual ( p . exitcode , 0 )