def METHOD_NAME(self):
    os_encoding = locale.getpreferredencoding()
    try:
        '\N{SNOWMAN}'.encode(os_encoding)
    except UnicodeEncodeError as e:
        # Default encoding of Windows console is 'cp1252'
        # which cannot encode the snowman.
        raise unittest.SkipTest("Cannot encode weird unicode "
            f"on this platform with {os_encoding}") from e
    good = [
        "linux", "Linux", "abc123", "a" * 50, '\N{SNOWMAN}'
    ]
    for g in good:
        log.msg(f'expect {repr(g)} to be good')
        self.assertTrue(identifiers.isIdentifier(50, g))
    bad = [
        None, '', b'linux', 'a/b', "a.b.c.d",
        "a-b_c.d9", 'spaces not allowed', "a" * 51,
        "123 no initial digits", '\N{SNOWMAN}.\N{SNOWMAN}',
    ]
    for b in bad:
        log.msg(f'expect {repr(b)} to be bad')
        self.assertFalse(identifiers.isIdentifier(50, b))