Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
 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())