Add test allow_offline_iface to get_instance()

This commit is contained in:
Dan Williams 2007-04-23 12:47:50 -04:00
parent 4ca4e5564e
commit 30a50bd9fc

View File

@ -430,10 +430,10 @@ class _MockPresenceService(gobject.GObject):
return None return None
_ps = None _ps = None
def get_instance(): def get_instance(allow_offline_iface=False):
"""Retrieve this process' view of the PresenceService""" """Retrieve this process' view of the PresenceService"""
global _ps global _ps
if not _ps: if not _ps:
_ps = PresenceService() _ps = PresenceService(allow_offline_iface)
return _ps return _ps