def test_isidentifier():
    assert isidentifier('abc')
    assert not isidentifier('<')
    assert not isidentifier('')
    if IS_PY2:
        # Py3 accepts unicode identifiers
        assert not isidentifier('áéíóú')
    else:
        assert isidentifier('áéíóú')