def METHOD_NAME(self):
    bad_names_to_try = (
        '._x._tcp.local.',
        'a' * 64 + '._sub._http._tcp.local.',
        'a' * 62 + 'â._sub._http._tcp.local.',
    )
    for name in bad_names_to_try:
        self.assertRaises(r.BadTypeInNameException, r.service_type_name, name)