def METHOD_NAME(self):
    good_names_to_try = (
        ('_x._tcp.local.', '_x._tcp.local.'),
        ('_x._udp.local.', '_x._udp.local.'),
        ('_12345-67890-abc._udp.local.', '_12345-67890-abc._udp.local.'),
        ('x._sub._http._tcp.local.', '_http._tcp.local.'),
        ('a' * 63 + '._sub._http._tcp.local.', '_http._tcp.local.'),
        ('a' * 61 + 'â._sub._http._tcp.local.', '_http._tcp.local.'),
    )
    for name, result in good_names_to_try:
        assert r.service_type_name(name) == result
    assert r.service_type_name('_one_two._tcp.local.', strict=False) == '_one_two._tcp.local.'