#NEWLINE# @ mock . patch ( 'rally.verification.tempest.config._write_config' ) #NEWLINE# @ mock . patch ( 'inspect.getmembers' ) #NEWLINE# def test_generate( self , mock_inspect_getmembers , mock__write_config ) : #NEWLINE# #INDENT# configure_something_method = mock . MagicMock ( ) #NEWLINE# mock_inspect_getmembers . return_value = [ ( '_configure_something' , configure_something_method ) ] #NEWLINE# self . tempest_conf . generate ( '/path/to/fake/conf' ) #NEWLINE# self . assertEqual ( configure_something_method . call_count , 1 ) #NEWLINE# self . assertEqual ( mock__write_config . call_count , 1 )