Ejemplo n.º 1
0
def test_emoticon_skips_invalid_parens():
    """Ensure emoticons are not detected if they use too many parens.

    Example: (emoti(con)).
    Results: ()
    """
    results = tuple(emoticon.emoticons("(emoti(con))."))
    assert not results
Ejemplo n.º 2
0
def test_emoticon_skips_unbounded_parens():
    """Ensure emoticons are not detected if they use too little parens.

    Example: (emoti (con).
    Results: ()
    """
    results = tuple(emoticon.emoticons("(emoti (con)."))
    assert not results