def stub(module, *services):
instance = ZeroconfStub(list(services))<EOL>module.Zeroconf = lambda: instance<EOL>module.ServiceBrowser = ServiceBrowserStub<EOL>return instance<EOL>
Stub a module using zeroconf.