#NEWLINE# def test_warn_if_host_not_in_intial_members( self ) : #NEWLINE# #INDENT# fake_conn = make_fake_conn ( ) #NEWLINE# cfg = make_fake_conf ( ) #NEWLINE# cfg . add_section ( 'global' ) #NEWLINE# cfg . set ( 'global' , 'mon initial members' , 'AAAA' ) #NEWLINE# mon . catch_mon_errors ( fake_conn , self . logger , 'host' , cfg , Mock ( ) ) #NEWLINE# expected_msg = 'is not defined in `mon initial members`' #NEWLINE# self . assert_logger_message ( self . logger . warning , expected_msg )