# Path: dbusmock/mockobject.py
# MOCK_IFACE = 'org.freedesktop.DBus.Mock'
# OBJECT_MANAGER_IFACE = 'org.freedesktop.DBus.ObjectManager'
# def load_module(name: str):
# def _format_args(args):
#     def format_arg(a):
# def _wrap_in_dbus_variant(value):
#     def __init__(self, bus_name: str, path: str, interface: str, props: PropsType,
#                  logfile: Optional[str] = None, is_object_manager: bool = False) -> None:
#     def __del__(self) -> None:
#     def _set_up_object_manager(self) -> None:
#     def _reset(self, props: PropsType) -> None:
#     def Get(self, interface_name: str, property_name: str) -> Any:
#     def GetAll(self, interface_name: str, *_, **__) -> PropsType:
#     def Set(self, interface_name: str, property_name: str, value: Any, *_, **__) -> None:
#     def AddObject(self, path: str, interface: str, properties: PropsType, methods: List[MethodType]) -> None:
#     def RemoveObject(self, path: str) -> None:  # pylint: disable=no-self-use
#     def Reset(self) -> None:
#     def AddMethod(self, interface, name: str, in_sig: str, out_sig: str, code: str) -> None:
#     def AddMethods(self, interface: str, methods: List[MethodType]) -> None:
#     def _set_property(self, interface, name, value):
#     def UpdateProperties(self, interface: str, properties: PropsType) -> None:
#     def AddProperty(self, interface: str, name: str, value: Any) -> None:
#     def AddProperties(self, interface: str, properties: PropsType) -> None:
#     def AddTemplate(self, template: str, parameters: PropsType) -> None:
#     def EmitSignal(self, interface: str, name: str, signature: str, args: List[Any]) -> None:
#     def GetCalls(self) -> List[CallLogType]:
#     def GetMethodCalls(self, method: str) -> List[Tuple[int, Sequence[Any]]]:
#     def ClearCalls(self) -> None:
#     def MethodCalled(self, name, args):
#     def object_manager_emit_added(self, path: str) -> None:
#     def object_manager_emit_removed(self, path: str) -> None:
#     def mock_method(self, interface: str, dbus_method: str, in_signature: str, *args, **_) -> Any:
#     def log(self, msg: str) -> None:
#     def Introspect(self, object_path: str, connection: dbus.connection.Connection) -> str:
# def _dbusmock_method_lookup(obj, method_name, dbus_interface):
# def get_objects() -> KeysView[str]:
# def get_object(path) -> DBusMockObject:
# class DBusMockObject(dbus.service.Object):  # pylint: disable=too-many-instance-attributes


import sys
import time
import dbus
from dbusmock import MOCK_IFACE, mockobject
        'AccountType': dbus.Int32(1),
        'AutomaticLogin': False,
        'BackgroundFile': '',
        'Email': f'{username}@python-dbusmock.org',
        'FormatsLocale': 'C',
        'HomeDirectory': f'/nonexisting/mock-home/{username}',
        'IconFile': '',
        'InputSources': dbus.Array([], signature='a{ss}'),
        'Language': 'C',
        'LocalAccount': True,
        'Location': '',
        'Locked': False,
        'LoginFrequency': dbus.UInt64(0),
        'LoginHistory': dbus.Array([], signature='(xxa{sv})'),
        'LoginTime': dbus.Int64(0),
        'PasswordHint': 'Remember it, come on!',
        'PasswordMode': 0,
        'Session': 'mock-session',
        'SessionType': 'wayland',
        'Shell': '/usr/bin/zsh',
        'SystemAccount': False,
        'XHasMessages': False,
        'XKeyboardLayouts': dbus.Array([], signature='s'),
        'XSession': 'mock-xsession',
    }
    default_props.update(overrides if overrides else {})
    self.AddObject(path, USER_IFACE, default_props, [])

    had_users = len(self.mock_users) != 0
    had_multiple_users = len(self.mock_users) > 1

# Path: dbusmock/mockobject.py
# MOCK_IFACE = 'org.freedesktop.DBus.Mock'
# OBJECT_MANAGER_IFACE = 'org.freedesktop.DBus.ObjectManager'
# def load_module(name: str):
# def _format_args(args):
#     def format_arg(a):
# def _wrap_in_dbus_variant(value):
#     def __init__(self, bus_name: str, path: str, interface: str, props: PropsType,
#                  logfile: Optional[str] = None, is_object_manager: bool = False) -> None:
#     def __del__(self) -> None:
#     def _set_up_object_manager(self) -> None:
#     def _reset(self, props: PropsType) -> None:
#     def Get(self, interface_name: str, property_name: str) -> Any:
#     def GetAll(self, interface_name: str, *_, **__) -> PropsType:
#     def Set(self, interface_name: str, property_name: str, value: Any, *_, **__) -> None:
#     def AddObject(self, path: str, interface: str, properties: PropsType, methods: List[MethodType]) -> None:
#     def RemoveObject(self, path: str) -> None:  # pylint: disable=no-self-use
#     def Reset(self) -> None:
#     def AddMethod(self, interface, name: str, in_sig: str, out_sig: str, code: str) -> None:
#     def AddMethods(self, interface: str, methods: List[MethodType]) -> None:
#     def _set_property(self, interface, name, value):
#     def UpdateProperties(self, interface: str, properties: PropsType) -> None:
#     def AddProperty(self, interface: str, name: str, value: Any) -> None:
#     def AddProperties(self, interface: str, properties: PropsType) -> None:
#     def AddTemplate(self, template: str, parameters: PropsType) -> None:
#     def EmitSignal(self, interface: str, name: str, signature: str, args: List[Any]) -> None:
#     def GetCalls(self) -> List[CallLogType]:
#     def GetMethodCalls(self, method: str) -> List[Tuple[int, Sequence[Any]]]:
#     def ClearCalls(self) -> None:
#     def MethodCalled(self, name, args):
#     def object_manager_emit_added(self, path: str) -> None:
#     def object_manager_emit_removed(self, path: str) -> None:
#     def mock_method(self, interface: str, dbus_method: str, in_signature: str, *args, **_) -> Any:
#     def log(self, msg: str) -> None:
#     def Introspect(self, object_path: str, connection: dbus.connection.Connection) -> str:
# def _dbusmock_method_lookup(obj, method_name, dbus_interface):
# def get_objects() -> KeysView[str]:
# def get_object(path) -> DBusMockObject:
# class DBusMockObject(dbus.service.Object):  # pylint: disable=too-many-instance-attributes


# Path: dbusmock/templates/accounts_service.py
import sys
import time
import dbus
from dbusmock import MOCK_IFACE, mockobject

        'AccountType': dbus.Int32(1),
        'AutomaticLogin': False,
        'BackgroundFile': '',
        'Email': f'{username}@python-dbusmock.org',
        'FormatsLocale': 'C',
        'HomeDirectory': f'/nonexisting/mock-home/{username}',
        'IconFile': '',
        'InputSources': dbus.Array([], signature='a{ss}'),
        'Language': 'C',
        'LocalAccount': True,
        'Location': '',
        'Locked': False,
        'LoginFrequency': dbus.UInt64(0),
        'LoginHistory': dbus.Array([], signature='(xxa{sv})'),
        'LoginTime': dbus.Int64(0),
        'PasswordHint': 'Remember it, come on!',
        'PasswordMode': 0,
        'Session': 'mock-session',
        'SessionType': 'wayland',
        'Shell': '/usr/bin/zsh',
        'SystemAccount': False,
        'XHasMessages': False,
        'XKeyboardLayouts': dbus.Array([], signature='s'),
        'XSession': 'mock-xsession',
    }
    default_props.update(overrides if overrides else {})
    self.AddObject(path, USER_IFACE, default_props, [])

    had_users = len(self.mock_users) != 0
    had_multiple_users = len(self.mock_users) > 1

    user = mockobject.objects[path]