_______________ ServiceTypesQuery.test_integration_with_listener _______________
self = <zeroconf.test.ServiceTypesQuery testMethod=test_integration_with_listener>
def test_integration_with_listener(self):
type_ = "_test-srvc-type._tcp.local."
name = "xxxyyy"
registration_name = "%s.%s" % (name, type_)
zeroconf_registrar = Zeroconf(interfaces=['127.0.0.1'])
desc = {'path': '/~paulsm/'}
info = ServiceInfo(
type_,
registration_name,
80,
0,
0,
desc,
"ash-2.local.",
addresses=[socket.inet_aton("10.0.1.2")],
)
zeroconf_registrar.register_service(info)
try:
service_types = ZeroconfServiceTypes.find(interfaces=['127.0.0.1'], timeout=0.5)
> assert type_ in service_types
E AssertionError: assert '_test-srvc-type._tcp.local.' in ('_net-assistant._udp.local.', '_rfb._tcp.local.', '_sftp-ssh._tcp.local.', '_ssh._tcp.local.')
zeroconf/test.py:1159: AssertionError
Likely fixed by #419