#NEWLINE# def test_print_help( self ) : #NEWLINE# #INDENT# out = StringIO ( ) #NEWLINE# self . conf . print_help ( out = out , skip_header = True ) #NEWLINE# out = out . getvalue ( ) . strip ( ) #NEWLINE# assert_false ( ( 'dontseeme' in self ) ) #NEWLINE# assert_equals ( re . sub ( '^    (?m)' , '' , '\n    Key: bar (optional)\n      Default: 456\n      Config with default\n\n    Key: blah (required)\n      Another required\n\n    Key: blahblah (optional)\n      [no help text provided]\n\n    [clusters]\n      Details about your Hadoop cluster(s)\n\n      Consists of some number of sections like:\n      [<user specified name>]\n        Details about a cluster - one section for each.\n\n        Key: host (required)\n          Hostname for the NN\n\n        Key: port (optional)\n          Default: 10090\n          Thrift port for the NN\n\n    Key: dynamic_default (optional)\n      Dynamic default: Calculates a sum\n      [no help text provided]\n\n    Key: foo (optional)\n      A vanilla configuration param\n\n    Key: list (optional)\n      [no help text provided]\n\n    Key: req (required)\n      A required config\n    ' ) . strip ( ) , out )