def shut_down(): """Shut down the web service and destroys the database.""" admin = mymodule.get_admin_client() if admin.service_is_up: mymodule.stop_web_server() assert_false(admin.service_is_up()) mymodule.destroy_database()
def test_stop_service(self): """Shut down the web service.""" client = mymodule.ServiceClient(service_config) if client.service_is_up: mymodule.stop_web_server() assert_false(client.service_is_up())