def test_stop_app_instance(self): flexmock(subprocess).should_receive('call')\ .and_return(0) flexmock(file_io).should_receive('read')\ .and_return('0') flexmock(os).should_receive('system')\ .and_return(0) app_manager_server.stop_app('test')
def test_stop_app(self): flexmock(monit_interface).should_receive('stop')\ .and_return(True) flexmock(os).should_receive('system')\ .and_return(0) app_manager_server.stop_app('test')
def test_stop_app(self): flexmock(monit_interface).should_receive("stop").and_return(True) flexmock(os).should_receive("system").and_return(0) app_manager_server.stop_app("test")
def test_stop_app_instance(self): flexmock(subprocess).should_receive("call").and_return(0) flexmock(file_io).should_receive("read").and_return("0") flexmock(os).should_receive("system").and_return(0) app_manager_server.stop_app("test")