We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0111e11 commit 63cdbe5Copy full SHA for 63cdbe5
1 file changed
test_zeroconf.py
@@ -90,6 +90,18 @@ def test_service_info_dunder(self):
90
assert not info != info
91
repr(info)
92
93
+ def test_service_info_text_properties_not_given(self):
94
+ type_ = "_test-srvc-type._tcp.local."
95
+ name = "xxxyyy"
96
+ registration_name = "%s.%s" % (name, type_)
97
+ info = ServiceInfo(
98
+ type_=type_, name=registration_name,
99
+ address=socket.inet_aton("10.0.1.2"),
100
+ port=80, server="ash-2.local.")
101
+
102
+ assert isinstance(info.text, bytes)
103
+ repr(info)
104
105
def test_dns_outgoing_repr(self):
106
dns_outgoing = r.DNSOutgoing(r._FLAGS_QR_QUERY)
107
repr(dns_outgoing)
0 commit comments