def test_halremote_integration(halremote, dns_sd): rcomp = halremote.RemoteComponent('test') rcomp.newpin('foo', halremote.HAL_BIT, halremote.HAL_OUT) rcomp.newpin('bar', halremote.HAL_FLOAT, halremote.HAL_IN) sd = dns_sd.ServiceDiscovery() sd.register(rcomp)
def test_application_integration(): status = application.ApplicationStatus() command = application.ApplicationCommand() error = application.ApplicationError() log = application.ApplicationLog() appfile = application.ApplicationFile() sd = dns_sd.ServiceDiscovery() sd.register(status) sd.register(command) sd.register(error) sd.register(log) sd.register(appfile)
def sd(): from pymachinetalk import dns_sd sd = dns_sd.ServiceDiscovery() return sd