def test_service_update_to_add_properties(): service_add("dummyservice", description="dummy") assert not _get_services()["dummyservice"].get("test_status") service_add("dummyservice", description="dummy", test_status="true") assert _get_services()["dummyservice"].get("test_status") == "true"
def test_service_add_real_service(): service_add("networking") assert "networking" in service_status().keys()
def test_service_remove(): service_add("dummyservice", description="A dummy service to run tests") assert "dummyservice" in service_status().keys() service_remove("dummyservice") assert "dummyservice" not in service_status().keys()
def test_service_update_to_remove_properties(): service_add("dummyservice", description="dummy", test_status="false") assert _get_services()["dummyservice"].get("test_status") == "false" service_add("dummyservice", description="dummy", test_status="") assert not _get_services()["dummyservice"].get("test_status")