def METHOD_NAME():
    get_enabled = MagicMock(return_value=["baz", "hello", "world"])
    init_d_globs = ["/etc/init.d/foo", "/etc/init.d/bar"]
    glob_mock = MagicMock(
        side_effect=lambda x: init_d_globs if x == "/etc/init.d/*" else DEFAULT
    )
    with patch("glob.glob", glob_mock), patch.object(
        debian_service, "get_enabled", get_enabled
    ):
        ret = debian_service.get_all()
        expected = ["bar", "baz", "foo", "hello", "world"]
        assert ret == expected, ret